-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Jenkinsfile-dependency-report
46 lines (40 loc) · 1.52 KB
/
Jenkinsfile-dependency-report
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
44
45
46
#!groovy
pipeline {
agent any
triggers {
pollSCM('@weekly')
}
options {
skipDefaultCheckout()
buildDiscarder logRotator( numToKeepStr: '50' )
// save some io during the build
durabilityHint( 'PERFORMANCE_OPTIMIZED' )
}
parameters {
string( defaultValue: 'jetty-12.0.x', description: 'Jetty branch to build',
name: 'JETTY_BRANCH' )
}
stages {
stage( "Build / Dependency Report" ) {
agent {
node { label 'linux' }
}
steps {
timeout( time: 120, unit: 'MINUTES' ) {
withEnv(["JAVA_HOME=${ tool "jdk17" }",
"PATH+MAVEN=${ tool "jdk17" }/bin:${tool "maven3"}/bin",
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
checkout([$class: 'GitSCM',
branches: [[name: "$JETTY_BRANCH"]],
extensions: [[$class: 'CloneOption', depth: 1, noTags: true, shallow: true, reference: "/home/jenkins/jetty.project.git"]],
userRemoteConfigs: [[url: 'https://github.com/eclipse/jetty.project.git']]])
sh "mvn install -ntp -DskipTests -T5"
sh "bash ./build/scripts/dependency-update-reports.sh"
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "reports/dependency-update-reports/", reportFiles: 'dependency-updates-report-*.html', reportName: 'Dependencies Report', reportTitles: ''])
}
}
}
}
}
}
// vim: et:ts=2:sw=2:ft=groovy