Browse Source

change Jenkinsfile

master
domsgit 5 years ago
parent
commit
2b4f91b389
1 changed files with 12 additions and 12 deletions
  1. 24
      Jenkinsfile

24
Jenkinsfile

@ -27,18 +27,18 @@ node('haimaxy-jnlp') {
} }
stage('YAML') { stage('YAML') {
echo "5. Change YAML File Stage" echo "5. Change YAML File Stage"
def userInput = input(
id: 'userInput',
message: 'Choose a deploy environment',
parameters: [
[
$class: 'ChoiceParameterDefinition',
choices: "Dev\nQA\nProd",
name: 'Env'
]
]
)
echo "This is a deploy step to ${userInput.Env}"
//def userInput = input(
// id: 'userInput',
// message: 'Choose a deploy environment',
// parameters: [
// [
// $class: 'ChoiceParameterDefinition',
// choices: "Dev\nQA\nProd",
// name: 'Env'
// ]
// ]
//)
//echo "This is a deploy step to ${userInput.Env}"
sh "sed -i 's/<BUILD_TAG>/${build_tag}/' k8s.yaml" sh "sed -i 's/<BUILD_TAG>/${build_tag}/' k8s.yaml"
sh "sed -i 's/<BRANCH_NAME>/${env.BRANCH_NAME}/' k8s.yaml" sh "sed -i 's/<BRANCH_NAME>/${env.BRANCH_NAME}/' k8s.yaml"
} }

Loading…
Cancel
Save