mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 19:43:09 +00:00
👷🏻♀️ Add Jenkinsfile
This commit is contained in:
parent
6a3d2e7342
commit
cba32d3535
1 changed files with 57 additions and 0 deletions
57
Jenkinsfile
vendored
Normal file
57
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
#!/usr/bin/env groovy
|
||||
/*
|
||||
* Jenkinsfile
|
||||
* mas-cli
|
||||
*
|
||||
* Declarative Jenkins pipeline script - https://jenkins.io/doc/book/pipeline/
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
options {
|
||||
// https://jenkins.io/doc/book/pipeline/syntax/#options
|
||||
buildDiscarder(logRotator(numToKeepStr: '100'))
|
||||
disableConcurrentBuilds()
|
||||
timeout(time: 1, unit: 'HOURS')
|
||||
timestamps()
|
||||
}
|
||||
|
||||
triggers {
|
||||
// cron('H */4 * * 1-5')
|
||||
githubPush()
|
||||
}
|
||||
|
||||
environment {
|
||||
LANG = 'en_US.UTF-8'
|
||||
LANGUAGE = 'en_US.UTF-8'
|
||||
LC_ALL = 'en_US.UTF-8'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Assemble') {
|
||||
steps {
|
||||
sh 'script/bootstrap'
|
||||
sh 'script/build'
|
||||
sh 'script/archive'
|
||||
sh 'script/package'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'script/test'
|
||||
}
|
||||
}
|
||||
stage('Lint') {
|
||||
steps {
|
||||
echo 'Not implemented'
|
||||
}
|
||||
}
|
||||
stage('Danger') {
|
||||
steps {
|
||||
// sh 'bundle install --verbose'
|
||||
sh 'bundle exec danger --verbose'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue