build dockerfile in jenkins

This commit is contained in:
Adam Wojdyla 2022-04-01 21:50:17 +02:00
parent fcfd2bdc24
commit 0f04cd4915

View File

@ -1,13 +1,12 @@
pipeline {
agent {
docker { image 'ubuntu:latest' }
}
stages {
stage('Test') {
steps {
sh 'cat /etc/issue'
}
agent {
dockerfile true
}
stages {
stage('Test') {
steps {
sh 'cat /etc/issue'
}
}
}
}