You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/Jenkinsfile

28 lines
520 B

pipeline {
agent {
node {
label 'willa'
}
}
stages {
stage('build') {
steps {
sh ' docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .'
sh 'cd /home/administrator/apps/$IMAGE_NAME/;sudo ./BuildDocker'
}
}
stage('deploy') {
steps {
sh 'cd /home/administrator/apps/$IMAGE_NAME/ ; docker-compose up -d'
sh 'docker exec willaengine service cron start'
}
}
}
environment {
IMAGE_NAME = 'willaengine'
}
}