Skip to content

Commit

Permalink
[mater] Jenkins build/release job git fix (#12)
Browse files Browse the repository at this point in the history
* Pipeline Git checkout fix

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman authored Sep 11, 2020
1 parent 275820b commit a334dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/jenkins/build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pipeline {
// Initialize build environment
stage('Init') {
steps {
git branch: '${GIT_BRANCH}', url: '${GIT_REPOSITORY_URL}'
git branch: GIT_BRANCH, credentialsId: SSH_CREDENTIALS_ID, url: GIT_REPOSITORY_URL
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) {
sh label: '', script: '''
gpg --batch --import "${KEYRING}"
Expand Down
4 changes: 2 additions & 2 deletions etc/jenkins/release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ spec:
stage('Init') {
steps {
container('el-build') {
git branch: '${GIT_BRANCH}', credentialsId: '${SSH_CREDENTIALS_ID}', url: '${GIT_REPOSITORY_URL}'
git branch: GIT_BRANCH, credentialsId: SSH_CREDENTIALS_ID, url: GIT_REPOSITORY_URL
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) {
sh label: '', script: '''
gpg --batch --import "${KEYRING}"
Expand All @@ -138,7 +138,7 @@ spec:
stage('Build and release Oracle DDL Parser') {
steps {
container('el-build') {
git branch: '${GIT_BRANCH}', credentialsId: '${SSH_CREDENTIALS_ID}', url: '${GIT_REPOSITORY_URL}'
git branch: GIT_BRANCH, credentialsId: SSH_CREDENTIALS_ID, url: GIT_REPOSITORY_URL
sshagent(['SSH_CREDENTIALS_ID']) {
sh '''
etc/jenkins/release.sh "${DDLPARSER_VERSION}" "${NEXT_DDLPARSER_VERSION}" "${DRY_RUN}" "${OVERWRITE}"
Expand Down

0 comments on commit a334dab

Please sign in to comment.