Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
[CI] Update JenkinsFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasser BOUKHERS committed Apr 22, 2020
1 parent 557c9da commit 30e0e89
Showing 1 changed file with 42 additions and 14 deletions.
56 changes: 42 additions & 14 deletions JenkinsFile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ pipeline {
triggers { pollSCM('* * * * *') }
stages {

stage("Get Third Parties") {
stage("Get Third Parties StandAlone") {
steps {
script {
BRANCH = BRANCH_NAME.replace('/','_')
version = sh (
script: "cat StandAlone/*.pro | grep VERSION | head -1 | cut -d '=' -f 2",
returnStdout: true
)
version = version.replaceAll("[\r|\n]","")
dir("StandAlone") {
version = getVersion()
}
}
withCredentials([string(credentialsId: 'artifactoryApiKey', variable: 'apiKey')]) {
dir("StandAlone"){
Expand All @@ -33,10 +31,8 @@ pipeline {

stage("Build StandAlone") {
steps {
withEnv(['REMAKEN_RULES_ROOT=/home/jenkins/.remaken/rules/']) {
sh "qmake StandAlone/SolARFiducialMarkerSampleStandAlone.pro"
sh "make"
sh "make install"
dir("StandAlone") {
build("")
}
}
}
Expand All @@ -46,14 +42,46 @@ pipeline {
expression { params.RELEASE == true }
}
steps {
withEnv(['REMAKEN_RULES_ROOT=/home/jenkins/.remaken/rules/']) {
sh "qmake StandAlone/SolARFiducialMarkerSampleStandAlone.pro CONFIG+=debug"
sh "make"
sh "make install"
dir("StandAlone") {
build("debug")
}
}
}

stage("Get Third Parties Plugin") {
steps {
script {
BRANCH = BRANCH_NAME.replace('/','_')
dir("Plugin") {
version = getVersion()
}
}
withCredentials([string(credentialsId: 'artifactoryApiKey', variable: 'apiKey')]) {
dir("Plugin"){
installRemaken(params.RELEASE,BRANCH,apiKey)
}
}
}
}

stage("Build Plugin") {
steps {
dir("Plugin") {
build("")
}
}
}

stage("Build Plugin Debug") {
when {
expression { params.RELEASE == true }
}
steps {
dir("Plugin") {
build("debug")
}
}
}


stage("Generate artifacts") {
Expand Down

0 comments on commit 30e0e89

Please sign in to comment.