Files
kata-containers/Jenkinsfiles/release_pieline/Jenkinsfile
Jose Carlos Venegas Munoz b3cb1fac48 ci: Add bump release pipeline
Add pipeline to bump repos in Kata

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2019-04-26 09:24:17 -05:00

43 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
cd packaging
'''
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}"
'''
}
}
}
}
}