38 lines
842 B
Groovy
38 lines
842 B
Groovy
pipeline {
|
|
environment {
|
|
DOCKER_USERNAME = 'tom'
|
|
DOCKER_PASSWORD = credentials('dgitea_tom')
|
|
}
|
|
|
|
agent any
|
|
|
|
stages {
|
|
stage ("Building image arbeitszeit-backend"){
|
|
when {
|
|
anyOf{
|
|
changeset 'Jenkinsfile'
|
|
changeset 'Makefile'
|
|
changeset 'Backend/**'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'make build_backend'
|
|
}
|
|
|
|
}
|
|
stage('Deploying image arbeitszeit-backend') {
|
|
when {
|
|
anyOf{
|
|
changeset 'Jenkinsfile'
|
|
changeset 'Makefile'
|
|
changeset 'Backend/**'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'make push_backend'
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|