mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-18 22:04:22 +01:00
Merge pull request #962 from mramanathan/dir_context_bump_release_scripts
ci: Provide source directory path for script execution
This commit is contained in:
16
Jenkinsfiles/release_pieline/Jenkinsfile
vendored
16
Jenkinsfiles/release_pieline/Jenkinsfile
vendored
@@ -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}"
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user