Skip to content

Commit

Permalink
Make Mozillians CIS test env seperate from prod
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingspaz committed Feb 14, 2018
1 parent 431599c commit a1656c6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ node('master'){
environment = "production"
app_id_group = ""
break
case "cistest":
environment = "cistest"
app_id_group = "/staging/"
break
default:
print "Invalid branch"
currentBuild.result = "FAILURE"
Expand All @@ -21,7 +25,7 @@ node('master'){

node('mesos') {
def image
def app_id = "mozillians"
def app_id = (environment == "cistest") ? "mozillianscistest" : "mozillians"
def dockerRegistry = "docker-registry.ops.mozilla.community:443"

stage('Prep') {
Expand All @@ -32,11 +36,6 @@ node('mesos') {
string(name: 'marathon_id', value: app_id_group + app_id),
string(name: 'marathon_config', value: 'mozillians_' + environment + '.json'),
string(name: 'type', value: 'group')]
params_cistest = [string(name: 'environment', value: "production"),
string(name: 'commit_id', value: gitCommit),
string(name: 'marathon_id', value: app_id_group + 'mozillianscistest'),
string(name: 'marathon_config', value: 'mozillians_cistest.json'),
string(name: 'type', value: 'group')]
}

stage('Build') {
Expand Down Expand Up @@ -66,12 +65,7 @@ node('mesos') {
node('master') {
stage('Deploy') {
parallel (
"deploy": { build job: 'deploy-test', parameters: params },
"cis testing deploy": {
if (environment == 'production') {
build job: 'deploy-test', parameters: params_cistest
}
}
"deploy": { build job: 'deploy-test', parameters: params }
)
}
}

0 comments on commit a1656c6

Please sign in to comment.