-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
31 lines (29 loc) · 1.3 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
/* Ituglib_Build - Paste into this Pipeline Project Name in Each Jenkins Instance. */
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
triggers {
pollSCM('H * * * *')
}
stages {
stage('refresh') {
steps {
checkout([$class: 'GitSCM',
branches: [[name: '*/main']],
extensions: [
[$class: 'CleanBeforeCheckout'],
[$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: true,
recursiveSubmodules: true, reference: '', trackingSubmodules: false]],
doGenerateSubmoduleConfigurations: false, submoduleCfg: [],
userRemoteConfigs: [[url: 'https://github.com/ituglib/ituglib-build.git']]])
}
}
}
post {
always {
mail bcc: '', body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\nDuration: ${currentBuild.durationString}\nChange: ${currentBuild.changeSets}\n More info at: ${env.BUILD_URL}", cc: '', from: '[email protected]', replyTo: '', subject: "[Jenkins HPITUG] ${currentBuild.currentResult}: job ${env.JOB_NAME}", to: '[email protected]'
}
}
}