Backend - Go (be-golang)
Use this quickstarter when you want to use Go. Go is well suited for CLI tools, network/operational related things and microservices.
├── Jenkinsfile - Contains Jenkins build configuration ├── README.md ├── docker - Contains Dockerfile for the build │ └── Dockerfile ├── sonar-project.properties - SonarQube Configuration ├── main.go - Example Go file
None, except the ODS Jenkins Shared Library
Simply start to write Go code, e.g. by extending
main.go. No further adjustments
should be necessary. Typically, you’d want to use Go modules:
go mod init example.com/project/component
There are six steps:
Check that all files are gofmt’d.
Run SonarQube analysis.
Run all package tests.
Build the binary (placing it into the
Build the container image.
This quickstarter uses Golang builder slave.