Add main.go example

This commit is contained in:
Benjamin Muschko
2019-08-09 17:57:00 -06:00
parent 3196abca24
commit 570ee04fcf

View File

@@ -33,6 +33,18 @@ Configure a Go runtime as global tool.
![Go Global Tool](./images/12-basic-jenkinsfile/go-global-tool.png) ![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. The final `Jenkinsfile` looks similar to the solution below.
```groovy ```groovy