diff --git a/jenkinsfile b/jenkinsfile index 6c9c1b8..7e4be1d 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -3,6 +3,7 @@ pipeline { stages { stage('Build') { + cleanWs() steps { sh '''export PATH=$PATH:/usr/local/go/bin go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"''' diff --git a/main.go b/main.go index 420850c..869eccf 100644 --- a/main.go +++ b/main.go @@ -4,5 +4,5 @@ import "fmt" func main() { fmt.Println("Hello World 123") - fmt.Println("Hello World 123 + fmt.Println("This is a test") } \ No newline at end of file