mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
build: Enclose source dir for script execution
1. For the git clone operation, 'sh' step in a single line would suffice. 2. Provide directory context using 'dir', this avoids having to provide the path to the scripts twice, while executing each and every script in that folder. Signed-off-by: Ramanathan Muthaiah <rus.cahimb@gmail.com>
This commit is contained in:
parent
9a37ebec66
commit
3418d40158
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}"
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user