mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-28 12:05:40 +00:00
Rename directory name from release_pieline to release_pipeline Fixes: #1034 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
41 lines
1.0 KiB
Groovy
41 lines
1.0 KiB
Groovy
// Copyright (c) 2019 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
pipeline {
|
|
agent none
|
|
parameters {
|
|
string(
|
|
name: 'BRANCH',
|
|
defaultValue:"master",
|
|
description: "Kata Containers Branch"
|
|
)
|
|
string(
|
|
name: 'NEW_VERSION',
|
|
defaultValue:"",
|
|
description: "Kata Containers version"
|
|
)
|
|
}
|
|
environment {
|
|
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
BRANCH="${params.BRANCH}"
|
|
NEW_VERSION="${params.NEW_VERSION}"
|
|
}
|
|
stages {
|
|
stage('Bump repos') {
|
|
agent { label 'ubuntu-lts-latest-azure' }
|
|
steps {
|
|
sh 'git clone https://github.com/kata-containers/packaging.git'
|
|
withCredentials([string(credentialsId: 'katabuilder-git-bump', variable: 'GITHUB_TOKEN')]) {
|
|
dir("${WORKSPACE}/packaging/Jenkinsfiles/release_pipeline/") {
|
|
sh '''
|
|
./git_credential_cache.sh
|
|
./bump.sh "${NEW_VERSION}" "${BRANCH}"
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|