pipeline { agent { node { label 'willa' } } stages { stage('build') { steps { sh ' docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .' } } stage('deploy') { steps { dir(path: '/home/administrator/apps/$IMAGE_NAME/') { sh 'docker-compose up -d' } } } } environment { IMAGE_NAME = 'karmmania' } }