automated terminal push
This commit is contained in:
57
Jenkinsfile
vendored
57
Jenkinsfile
vendored
@@ -3,20 +3,20 @@ pipeline {
|
||||
agent none
|
||||
|
||||
options {
|
||||
|
||||
|
||||
disableConcurrentBuilds(abortPrevious: true)
|
||||
|
||||
buildDiscarder(logRotator(numToKeepStr: '1'))
|
||||
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
|
||||
|
||||
stage('docker compose build') {
|
||||
|
||||
|
||||
agent {
|
||||
|
||||
label "aventador"
|
||||
|
||||
|
||||
label "sian"
|
||||
|
||||
}
|
||||
|
||||
steps {
|
||||
@@ -24,19 +24,19 @@ pipeline {
|
||||
dir('.') {
|
||||
|
||||
sh 'docker compose build'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
stage('docker compose push') {
|
||||
|
||||
agent {
|
||||
|
||||
label "aventador"
|
||||
|
||||
|
||||
label "sian"
|
||||
|
||||
}
|
||||
|
||||
steps {
|
||||
@@ -44,32 +44,11 @@ pipeline {
|
||||
dir('.') {
|
||||
|
||||
sh 'docker compose push'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage('prune') {
|
||||
}
|
||||
|
||||
agent {
|
||||
|
||||
label "aventador"
|
||||
|
||||
}
|
||||
|
||||
steps {
|
||||
|
||||
dir('.') {
|
||||
|
||||
sh 'docker system prune -a -f'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user