forked from SonarSource/sonarlint-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunsigned.Jenkinsfile
More file actions
25 lines (24 loc) · 1.24 KB
/
unsigned.Jenkinsfile
File metadata and controls
25 lines (24 loc) · 1.24 KB
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
pipeline {
agent { label 'Windows-Office02' }
options {
buildDiscarder(logRotator(daysToKeepStr:'10'))
timeout(time: 15, unit: 'MINUTES')
skipDefaultCheckout()
disableConcurrentBuilds()
}
stages {
stage ('Build sonarlint-eclipse') {
steps {
checkout([$class: 'GitSCM', branches: scm.branches, extensions: scm.extensions + [[$class: 'CleanCheckout']], userRemoteConfigs: scm.userRemoteConfigs])
script {
withEnv(["MVN_HOME=${tool name: 'Maven 3', type: 'hudson.tasks.Maven$MavenInstallation'}", "JAVA_HOME=${tool name: 'JDK17', type: 'jdk'}", "JAVA_HOME_11_X64=${tool name: 'Corretto 11', type: 'jdk'}", "JAVA_HOME_17_X64=${tool name: 'JDK17', type: 'jdk'}", "JAVA_HOME_21_X64=${tool name: 'JDK21', type: 'jdk'}"]) {
configFileProvider([configFile(fileId: 'MvnSettingsRSSW', variable: 'MAVEN_SETTINGS')]) {
bat "$MVN_HOME\\bin\\mvn -s %MAVEN_SETTINGS% --toolchains .github/scripts/toolchains.xml -Dskip-sonarsource-repo -Dmaven.test.skip=true -DARCHITECT_P2_DIR=/C:/Java/architect_p2 -DARCHITECT_DEPS_P2_DIR=/C:/Java/architect_p2 clean package"
}
}
}
archiveArtifacts artifacts: 'org.sonarlint.eclipse.site/target/*.zip'
}
}
}
}