Skip to content

Commit

Permalink
Changing Jenkinsfile to build with Java 7
Browse files Browse the repository at this point in the history
  • Loading branch information
imbur committed Jul 10, 2018
1 parent f0fb2ef commit 728cd31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Tell Jenkins how to build projects from this repository
pipeline {
agent any
agent {
label 'java7'
}
parameters {
booleanParam(defaultValue: true, description: '''This parameter is used to allow not to execute Sonar analysis. It is safe to always make this true, as the Sonar-trigger job will trigger this job without the SKIP_SONAR parameter set daily.''', name: 'SKIP_SONAR')
choice(choices: 'ci\nintegration\nrelease', description: '', name: 'BUILD_TYPE')
Expand All @@ -21,7 +23,7 @@ pipeline {
steps {
wrap([$class: 'TimestamperBuildWrapper']) {
configFileProvider([
configFile(fileId: 'default-maven-toolchains', variable: 'TOOLCHAIN'),
configFile(fileId: 'maven-toolchain-oldjdk', variable: 'TOOLCHAIN'),
configFile(fileId: 'default-maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh "mvn clean verify -B -t $TOOLCHAIN -s $MAVEN_SETTINGS -f releng/hu.bme.mit.massif.parent/pom.xml -Dmaven.repo.local=$WORKSPACE/.repository -DBUILD_TYPE=${params.BUILD_TYPE}"
sh "./releng/massif.commandevaluation.server-package/prepareMatlabServerPackage.sh"
Expand All @@ -36,7 +38,7 @@ pipeline {
steps {
wrap([$class: 'TimestamperBuildWrapper']) {
configFileProvider([
configFile(fileId: 'default-maven-toolchains', variable: 'TOOLCHAIN'),
configFile(fileId: 'maven-toolchain-oldjdk', variable: 'TOOLCHAIN'),
configFile(fileId: 'default-maven-settings', variable: 'MAVEN_SETTINGS')]) {
withSonarQubeEnv('IncQuery Labs SonarQube') {
sh "mvn sonar:sonar -B -t $TOOLCHAIN -s $MAVEN_SETTINGS -f releng/hu.bme.mit.massif.parent/pom.xml -Dmaven.repo.local=$WORKSPACE/.repository -DBUILD_TYPE=${params.BUILD_TYPE} -Dmirror-integration=false -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.scm.disabled=true"
Expand Down

0 comments on commit 728cd31

Please sign in to comment.