Merge pull request #962 from mramanathan/dir_context_bump_release_scripts

ci: Provide source directory path for script execution
This commit is contained in:
James O. D. Hunt
2020-03-16 11:45:03 +00:00
committed by GitHub

View File

@@ -25,16 +25,14 @@ pipeline {
stage('Bump repos') {
agent { label 'ubuntu-lts-latest-azure' }
steps {
sh '''
git clone https://github.com/kata-containers/packaging.git
cd packaging
'''
sh 'git clone https://github.com/kata-containers/packaging.git'
withCredentials([string(credentialsId: 'katabuilder-git-bump', variable: 'GITHUB_TOKEN')]) {
sh '''
cd packaging
./Jenkinsfiles/release_pieline/git_credential_cache.sh
./Jenkinsfiles/release_pieline/bump.sh "${NEW_VERSION}" "${BRANCH}"
'''
dir("${WORKSPACE}/packaging/Jenkinsfiles/release_pipeline/") {
sh '''
./git_credential_cache.sh
./bump.sh "${NEW_VERSION}" "${BRANCH}"
'''
}
}
}
}