소스 검색

Running on a node

Spencer Gardner 6 년 전
부모
커밋
2312e8ffc4
1개의 변경된 파일10개의 추가작업 그리고 8개의 파일을 삭제
  1. 10 8
      Jenkinsfile

+ 10 - 8
Jenkinsfile

@@ -4,17 +4,19 @@ pipeline{
 		pollSCM('H * * * *')
 		cron('H H H * *')
 	}
-	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()
+	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()
+						}
 					}
 				}
 			}
-        }
+		}
 	}
 	post {
 		success{