1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-01 13:07:49 +02:00

docs: added docs for Jenkins pipeline (#1527)

* Added docs for Jenkins

* Added index
This commit is contained in:
Weslei Juan Moser Pereira 2020-05-18 22:15:47 -03:00 committed by GitHub
parent be1d4d629f
commit b8d32449f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

37
www/docs/ci/jenkins.md Normal file
View File

@ -0,0 +1,37 @@
# 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 -sL https://git.io/goreleaser | bash'
}
}
}
}
```

View File

@ -54,6 +54,7 @@ nav:
- ci/codefresh.md
- ci/drone.md
- ci/semaphore.md
- ci/jenkins.md
- Customization:
- About: customization/index.md
- customization/project.md