Skip to content

Commit

Permalink
#156. Switch publishing to Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Joński committed Jan 2, 2017
1 parent 963343c commit 6f8cda3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ pipeline {
env.BRANCH == "master" && env.RELEASE == "true" && env.RELEASE_VERSION != "" && env.NEW_VERSION != ""
}
steps {
sh "gradle release -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=${releaseVersion} -Prelease.newVersion=${newVersion}"
sh "./gradlew release -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=${releaseVersion} -Prelease.newVersion=${newVersion}"
sh "./gradlew bintrayUpload"
sh "./gradlew javadoc >/dev/null"
sh "rm -rf ./src/book/javadoc"
sh "mv ./build/docs/javadoc ./src/book/javadoc"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ release {
tagTemplate = '${version}'
versionPropertyFile = 'gradle.properties'
versionProperties = []
buildTasks = ['build']
buildTasks = []

git {
requireBranch = 'master'
Expand Down

0 comments on commit 6f8cda3

Please sign in to comment.