Browse Source

edited Jenkinsfile

Spencer Gardner 6 years ago
parent
commit
8ade73445f
1 changed files with 8 additions and 10 deletions
  1. 8 10
      Jenkinsfile

+ 8 - 10
Jenkinsfile

@@ -1,18 +1,16 @@
 pipeline{
-	agent any
+	agent { label 'docker' }
 	triggers {
 		pollSCM('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()
 					}
 				}
 			}