2 커밋 a643aded4f ... 05bef20d8a

작성자 SHA1 메시지 날짜
  Spencer Gardner 05bef20d8a Merge branch 'master' of https://git.snppla.net/snppla/wifistick-rest 2 년 전
  Spencer Gardner 41898babfb Added jenkinsfile 2 년 전
1개의 변경된 파일31개의 추가작업 그리고 0개의 파일을 삭제
  1. 31 0
      Jenkinsfile

+ 31 - 0
Jenkinsfile

@@ -0,0 +1,31 @@
+pipeline{
+	agent { label 'docker' }
+	triggers {
+		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/wifistick-rest:${env.GIT_BRANCH}", "--pull ./")
+						customImage.push()
+					}
+				}
+			}
+        }
+	}
+	post {
+		success{
+			emailext body: "${env.BUILD_URL} was built", to: '$DEFAULT_RECIPIENTS', recipientProviders: [developers()], subject: "Built Pipeline: ${currentBuild.fullDisplayName}"
+		}
+		failure{
+			emailext body: "Something is wrong with ${env.BUILD_URL}", to: '$DEFAULT_RECIPIENTS', recipientProviders: [developers()], subject: "Failed Pipeline: ${currentBuild.fullDisplayName}"
+		}
+		fixed
+		{
+			emailext body: "The pipeline was fixed with ${env.BUILD_URL}", to: '$DEFAULT_RECIPIENTS', recipientProviders: [developers()], subject: "Pipeline fixed: ${currentBuild.fullDisplayName}"
+		}
+	}
+}