From 570ee04fcf1af1541ff82ea301d472ce30d8211a Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Fri, 9 Aug 2019 17:57:00 -0600 Subject: [PATCH] Add main.go example --- 12-basic-jenkinsfile.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/12-basic-jenkinsfile.md b/12-basic-jenkinsfile.md index 80b067a..9c7a44d 100644 --- a/12-basic-jenkinsfile.md +++ b/12-basic-jenkinsfile.md @@ -33,6 +33,18 @@ Configure a Go runtime as global tool. ![Go Global Tool](./images/12-basic-jenkinsfile/go-global-tool.png) +The `main.go` file could similar to the one below. + +```go +package main + +import "fmt" + +func main() { + fmt.Println("hello world") +} +``` + The final `Jenkinsfile` looks similar to the solution below. ```groovy