Skip to content

Commit

Permalink
Fix: env property name mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ytqsl authored Jan 24, 2020
1 parent 18ab70a commit 0881c28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R1-TRAINING-Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class AppEnvironment {

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

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

stage("Deploy to ${environments.training.name}") {
def environment = environments.training.environment
def environment = environments.training.env
def stableTag = environments.training.previousTag
node {
try {
Expand Down

0 comments on commit 0881c28

Please sign in to comment.