Skip to content

Commit

Permalink
Merge pull request #476 from robertoleksy/jenkins
Browse files Browse the repository at this point in the history
add mac and gui builds to jenkins
  • Loading branch information
robertoleksy authored Dec 14, 2017
2 parents d8efb33 + c2994a8 commit c387a8f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,34 @@ def run_thread_ub_test(git_url, branch) {
value: "$branch" ] ]
}

def native_mac(git_url, branch) {
build job: 'galaxy42_mac_native',
parameters: [ [$class: 'NodeParameterValue',
name: 'Multinode',
labels: ['mac_native'],
nodeEligibility: [$class: 'AllNodeEligibility'] ],
[$class: 'StringParameterValue',
name: 'git_repository_url',
value: "$git_url" ],
[$class: 'StringParameterValue',
name: 'git_branch',
value: "$branch" ] ]
}

def native_gui(git_url, branch) {
build job: 'galaxy42_gui',
parameters: [ [$class: 'NodeParameterValue',
name: 'Multinode',
labels: ['gui'],
nodeEligibility: [$class: 'AllNodeEligibility'] ],
[$class: 'StringParameterValue',
name: 'git_repository_url',
value: "$git_url" ],
[$class: 'StringParameterValue',
name: 'git_branch',
value: "$branch" ] ]
}

// build trigger - checking changes every 5 min
properties([pipelineTriggers([ [$class: 'GitHubPushTrigger'],
[$class: "SCMTrigger", scmpoll_spec: "H/5 * * * *"]
Expand All @@ -138,6 +166,9 @@ node('master') {
def build_native_windows_mingw32 = true
def build_native_windows_mingw64 = true
def build_native_windows_msvc = true
def build_native_mac = true

def build_native_gui = true

def should_run_unit_test = true
def should_run_integration_test = true
Expand Down Expand Up @@ -198,6 +229,20 @@ node('master') {
native_windows_msvc(GIT_REPOSITORY_URL,GIT_BRANCH)
}
}
},
mac: {
if(build_native_mac) {
stage('mac') {
native_mac(GIT_REPOSITORY_URL,GIT_BRANCH)
}
}
},
gui: {
if(build_native_gui) {
stage('gui') {
native_gui(GIT_REPOSITORY_URL,GIT_BRANCH)
}
}
}
)

Expand Down

0 comments on commit c387a8f

Please sign in to comment.