| def groovy |
| |
| pipeline { |
| agent none |
| |
| stages { |
| |
| stage('Load groovy script') { |
| agent any |
| stages { |
| stage('Checkout') { |
| steps { |
| checkout scm |
| script { |
| groovy = load('releng/Jenkinsfile.groovy') |
| } |
| } |
| } |
| } |
| } |
| |
| stage('Launch agent') { |
| agent { |
| kubernetes { |
| label 'rcptt-build-and-deploy-agent' |
| yaml "${env.YAML_BUILD_AND_DEPLOY_AGENT}" |
| } |
| } |
| stages { |
| stage('Start Build and Test') { |
| steps { |
| script { |
| groovy.build_and_test(true) |
| } |
| } |
| } |
| stage('Deploy') { |
| steps { |
| script { |
| groovy.deploy("Nightly") |
| } |
| } |
| } |
| } |
| post { |
| always { |
| script { |
| groovy.post_build_actions() |
| } |
| } |
| } |
| } |
| |
| } |
| } |