Build docker image with commands

This commit is contained in:
victormylle
2020-11-14 11:41:19 +01:00
parent 44e1e25d4b
commit d286ce7dd9

12
Jenkinsfile vendored
View File

@@ -1,14 +1,10 @@
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
}
}
agent any
stages {
stage('Build') {
stage('Build Docker Image') {
steps {
sh 'echo "test"'
sh '''docker build -t worldcraftdiscordbot:latest .
docker tag worldcraftdiscordbot:latest worldcraftdiscordbot:latest:v${env.BUILD_ID}'''
}
}