forked from d2iq-archive/jenkins-mesos-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
28 lines (24 loc) · 890 Bytes
/
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
#!/usr/bin/env groovy
@Library('sec_ci_libs@v2-latest') _
def master_branches = ["master", ] as String[]
ansiColor('xterm') {
// using shakedown node because it's a lightweight alpine docker image instead of full VM
node('shakedown') {
stage("Verify author") {
user_is_authorized(master_branches, '8b793652-f26a-422f-a9ba-0d1e47eb9d89', '#eng-jenkins-builds')
}
}
//node('mesos-med') {
node('JenkinsMarathonCI-Debian9-2018-12-17') {
stage('Build') {
try {
checkout scm
sh 'sudo -E ./ci/provision.sh 1.7.0'
sh 'sudo -E ./gradlew check --info'
} finally {
junit allowEmptyResults: true, testResults: 'build/test-results/test/*.xml'
publishHTML (target: [ alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'build/reports/spotbugs/', reportFiles: '*.html', reportName: 'SpotBugs' ])
}
}
}
}