Jenkins add script block

This commit is contained in:
30hours 2024-02-15 13:17:51 +00:00
parent 0b1683a6cd
commit 6e1e7c0c27

8
Jenkinsfile vendored
View file

@ -9,9 +9,11 @@ pipeline {
}
stage('Build') {
steps {
echo 'Building the project'
docker.build("30hours/blah2", "--file ./Dockerfile .")
docker.build("30hours/blah2", "--file ./api/Dockerfile .")
script {
echo 'Building the project'
blah2 = docker.build("30hours/blah2", "--file ./Dockerfile .")
blah2_api = docker.build("30hours/blah2", "--file ./api/Dockerfile .")
}
}
}
stage('Test') {