├── Jenkinsfile ├── README.md └── hello-world.go /Jenkinsfile: -------------------------------------------------------------------------------- 1 | @Library('github.com/cloudbeers/multibranch-demo-lib') _ 2 | properties([parameters([string(name: 'goVersion', defaultValue: '1.5.0', description: 'Which version of Go language to use.')])]) 3 | standardBuild environment: "golang:${params.goVersion}", 4 | mainScript: ''' 5 | go version 6 | go build -v hello-world.go 7 | ''', 8 | postScript: ''' 9 | ls -l 10 | ./hello-world 11 | ''' 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Simple demonstration of how to use multibranch Pipelines. 2 | [Demo](https://hub.docker.com/r/jenkinsci/pipeline-as-code-github-demo/) 3 | -------------------------------------------------------------------------------- /hello-world.go: -------------------------------------------------------------------------------- 1 | package main 2 | import "fmt" 3 | func main() { 4 | fmt.Println("Hello, world!") 5 | } 6 | --------------------------------------------------------------------------------