blob: 88bfd764e48c502b5a9e53496ba7ff4d6e4dc2c2 [file] [log] [blame]
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-agent'
yaml "${env.YAML_BUILD_AND_DEPLOY_AGENT}"
}
}
stages {
stage('Start Build and Test') {
steps {
script {
groovy.build_and_test()
}
}
}
stage('Deploy') {
steps {
script {
groovy.deploy("Nightly")
}
}
}
}
post {
always {
script {
groovy.post_build_actions()
}
}
}
}
}
}