21 lines
389 B
Groovy
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 * * * *')
|
|
}
|
|
} |