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') { stage('Build') {
steps { steps {
echo 'Building the project' script {
docker.build("30hours/blah2", "--file ./Dockerfile .") echo 'Building the project'
docker.build("30hours/blah2", "--file ./api/Dockerfile .") blah2 = docker.build("30hours/blah2", "--file ./Dockerfile .")
blah2_api = docker.build("30hours/blah2", "--file ./api/Dockerfile .")
}
} }
} }
stage('Test') { stage('Test') {