|
@@ -1,18 +1,16 @@
|
|
pipeline{
|
|
pipeline{
|
|
- agent any
|
|
|
|
|
|
+ agent { label 'docker' }
|
|
triggers {
|
|
triggers {
|
|
pollSCM('H * * * *')
|
|
pollSCM('H * * * *')
|
|
cron('H H H * *')
|
|
cron('H H H * *')
|
|
}
|
|
}
|
|
- node('docker'){
|
|
|
|
- stages{
|
|
|
|
- stage('Build') {
|
|
|
|
- steps {
|
|
|
|
- script {
|
|
|
|
- docker.withRegistry('https://docker.snppla.net', 'nexus_push'){
|
|
|
|
- def customImage = docker.build("docker.snppla.net/snppla/gogs-docker:${env.GIT_BRANCH}", "--pull ./")
|
|
|
|
- customImage.push()
|
|
|
|
- }
|
|
|
|
|
|
+ stages{
|
|
|
|
+ stage('Build') {
|
|
|
|
+ steps {
|
|
|
|
+ script {
|
|
|
|
+ docker.withRegistry('https://docker.snppla.net', 'nexus_push'){
|
|
|
|
+ def customImage = docker.build("docker.snppla.net/snppla/gogs-docker:${env.GIT_BRANCH}", "--pull ./")
|
|
|
|
+ customImage.push()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|