Skip to content

Commit

Permalink
Create github release if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnaud committed Jul 13, 2016
1 parent 0019507 commit eabcf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/jenkins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def githubRelease(UPLOAD_FILE, ARCHIVE_NAME) {
if (GIT_TAG) {
stage 'Publish github release'
withCredentials([[$class: 'StringBinding', credentialsId: 'GithubToken', variable: 'GITHUB_TOKEN']]) {
sh "github-release release -u aarnaud -r openwrt-build-script -t ${GIT_TAG}"
sh "github-release info -u aarnaud -r openwrt-build-script -t ${GIT_TAG} || github-release release -u aarnaud -r openwrt-build-script -t ${GIT_TAG}"
sh "github-release upload -u aarnaud -r openwrt-build-script -t ${GIT_TAG} -n ${ARCHIVE_NAME} -f ${UPLOAD_FILE}"
}
}
Expand Down

0 comments on commit eabcf3f

Please sign in to comment.