Skip to content

Commit

Permalink
Merge pull request #3 from jenkinsci/feature/task_error
Browse files Browse the repository at this point in the history
Tweak error in gradle
  • Loading branch information
sue445 committed Jan 11, 2016
2 parents 23fffba + a8c1487 commit 0e57923
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ task tagRelease << {

task checkVersion << {
if(version.endsWith("-SNAPSHOT")){
logger.error "################### Remove -SNAPSHOT ! ###################"
throw "Remove -SNAPSHOT !"
throw new GradleException("Remove '-SNAPSHOT' in version!")
}
}

Expand Down

0 comments on commit 0e57923

Please sign in to comment.