File: Jenkinsfile-dependency-report

package info (click to toggle)
jetty12 12.0.32-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 87,736 kB
  • sloc: java: 734,480; xml: 58,950; javascript: 1,041; sh: 874; jsp: 391; sql: 40; makefile: 9
file content (46 lines) | stat: -rw-r--r-- 1,561 bytes parent folder | download | duplicates (2)
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