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