From 402befa245e7889a16c9e4ce54848690a086b73f Mon Sep 17 00:00:00 2001 From: domsgit Date: Sat, 25 Jul 2020 13:14:40 +0800 Subject: [PATCH] update --- Jenkinsfile | 2 +- main.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd59599..344ec42 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,7 @@ node('haimaxy-jnlp') { //) //echo "This is a deploy step to ${userInput.Env}" sh "sed -i 's//${build_tag}/' k8s.yaml" - sh "sed -i 's//${env.BRANCH_NAME}/' k8s.yaml" + //sh "sed -i 's//${env.BRANCH_NAME}/' k8s.yaml" } stage('Deploy') { echo "6. Deploy Stage" diff --git a/main.go b/main.go index 7be26fd..4082687 100644 --- a/main.go +++ b/main.go @@ -4,10 +4,9 @@ package main // Import os so we can read environment variables from the system import ( "fmt" - "os" ) func main() { fmt.Println("Hello, Kubernetes!I'm from Jenkins CI!") - fmt.Println("BRANCH_NAME:", os.Getenv("branch")) +// fmt.Println("BRANCH_NAME:", os.Getenv("branch")) }