mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
97db97df87
* feat: new install anf run script - move away from deprecated git.io - support distribution - verify checksums and signature closes #3074 Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * fix: rename script Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
38 lines
538 B
Markdown
38 lines
538 B
Markdown
# Jenkins
|
|
|
|
Here is how to set up a [Jenkins](https://www.jenkins.io/) pipeline using Jenkinsfile:
|
|
|
|
```groovy
|
|
pipeline {
|
|
...
|
|
|
|
stages {
|
|
stage('Compile') {
|
|
steps {
|
|
sh 'go build'
|
|
}
|
|
}
|
|
|
|
stage('Test') {
|
|
steps {
|
|
sh 'go test ./...'
|
|
}
|
|
}
|
|
|
|
stage ('Release') {
|
|
when {
|
|
buildingTag()
|
|
}
|
|
|
|
environment {
|
|
GITHUB_TOKEN = credentials('github-token')
|
|
}
|
|
|
|
steps {
|
|
sh 'curl -sfL https://goreleaser.com/static/run | bash'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|