Skip to content

Commit

Permalink
Merge pull request #14 from Hydrospheredata/master
Browse files Browse the repository at this point in the history
- Added Jenkins integration
  • Loading branch information
Zajs authored Sep 18, 2017
2 parents 8a966bd + fbd4a32 commit 82b0047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def createReleaseInGithub(gitCredentialId, organization, repository, releaseVers

def uploadRelease(gitCredentialId, organization, repository, releaseVersion, releaseId, releaseFile){
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: gitCredentialId, usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD']]) {
sh """curl --data-binary @"${releaseFile}" -H "Authorization: token ${GIT_PASSWORD}" -H "Content-Type: application/zip" https://uploads.github.com/repos/${organization}/${repository}/releases/${releaseId}/assets?name=release-${releaseVersion}"""
sh """curl --data-binary @"${releaseFile}" -H "Authorization: token ${GIT_PASSWORD}" -H "Content-Type: application/zip" https://uploads.github.com/repos/${organization}/${repository}/releases/${releaseId}/assets?name=release-${releaseVersion}.zip"""
}
}

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3-SNAPSHOT
0.0.4-SNAPSHOT

0 comments on commit 82b0047

Please sign in to comment.