ADD: Jenkinsfile
This commit is contained in:
37
Jenkinsfile
vendored
Normal file
37
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user