-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
43 lines (42 loc) · 1.09 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pipeline {
agent { label 'piglet' }
options {
copyArtifactPermission('/iossifovlab/*,/seqpipe/*');
disableConcurrentBuilds()
}
environment {
BUILD_SCRIPTS_BUILD_DOCKER_REGISTRY_USERNAME = credentials('jenkins-registry.seqpipe.org.user')
BUILD_SCRIPTS_BUILD_DOCKER_REGISTRY_PASSWORD_FILE = credentials('jenkins-registry.seqpipe.org.passwd')
SONARQUBE_DEFAULT_TOKEN=credentials('sonarqube-default')
}
stages {
stage('Start') {
steps {
zulipSend(
message: "Started build #${env.BUILD_NUMBER} of project ${env.JOB_NAME} (${env.BUILD_URL})",
topic: "${env.JOB_NAME}")
}
}
stage('Generate stages') {
steps {
sh "./build.sh preset:slow build_no:${env.BUILD_NUMBER} generate_jenkins_init:yes"
script {
load('Jenkinsfile.generated-stages')
}
}
}
}
post {
always {
script {
try {
resultBeforeTests = currentBuild.currentResult
} finally {
zulipNotification(
topic: "${env.JOB_NAME}"
)
}
}
}
}
}