Skip to content

Commit

Permalink
Added environment tag to better serve Training environment (bcgov#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytqsl authored and rafaelponcedeleon committed Jan 24, 2020
1 parent b07b02c commit 18ab70a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions R1-TRAINING-Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ DOTNET_SKIP_FIRST_TIME_EXPERIENCE="true"

class AppEnvironment {
String name
String env
String tag
String previousTag
}

// EDIT LINE BELOW (Edit your environment TAG names)
environments = [
dev:new AppEnvironment(name:"Development",tag:"dev",previousTag:"dev-previous"),
test:new AppEnvironment(name:"Test",tag:"test",previousTag:"test-previous"),
training:new AppEnvironment(name:"Training",tag:"training",previousTag:"training-previous"),
prod:new AppEnvironment(name:"Prod",tag:"Prod",previousTag:"Prod-previous")
dev:new AppEnvironment(name:"Development",environment:"dev",tag:"dev",previousTag:"dev-previous"),
test:new AppEnvironment(name:"Test",environment:"test",tag:"test",previousTag:"test-previous"),
training:new AppEnvironment(name:"Training",environment:"test",tag:"training",previousTag:"training-previous"),
prod:new AppEnvironment(name:"Prod",environment:"prod",tag:"Prod",previousTag:"Prod-previous")
]

// You shouldn't have to edit these if you're following the conventions
Expand Down Expand Up @@ -141,7 +142,7 @@ node('master') {
}

stage("Deploy to ${environments.training.name}") {
def environment = environments.training.tag
def environment = environments.training.environment
def stableTag = environments.training.previousTag
node {
try {
Expand All @@ -163,4 +164,4 @@ node('master') {
}
}
}
}
}

0 comments on commit 18ab70a

Please sign in to comment.