vn-autoconfig/Jenkinsfile

31 lines
563 B
Groovy

#!/usr/bin/env groovy
pipeline {
agent any
environment {
PROJECT_NAME = 'vn-autoconfig'
}
stages {
stage('Checkout') {
steps {
setEnv()
}
}
stage('Deploy') {
when {
branch 'master'
}
environment {
CREDENTIALS = credentials('docker-registry')
}
steps {
dockerDeploy()
}
}
}
post {
always {
sendEmail()
}
}
}