Files
WorldCraft_Discord_Bot/Jenkinsfile
2020-11-14 14:50:40 +01:00

21 lines
389 B
Groovy

pipeline {
agent any
stages {
stage('Build Docker Image') {
steps {
sh 'docker build -t worldcraftdiscordbot:latest .'
sh "docker tag worldcraftdiscordbot:latest worldcraftdiscordbot:v${env.BUILD_ID}"
}
}
stage('Publish') {
steps {
sh "./publish.sh ${env.BUILD_ID}"
}
}
}
triggers {
pollSCM('H/2 * * * *')
}
}