forked from phatblat/ShellExec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
47 lines (43 loc) · 1.01 KB
/
Jenkinsfile
File metadata and controls
47 lines (43 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Jenkinsfile
* ShellExec
*
* Declarative 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()
}
stages {
stage('Assemble') {
steps {
sh './gradlew assemble --no-daemon --stacktrace'
}
}
stage('Test') {
steps {
sh './gradlew test --no-daemon --stacktrace'
}
}
stage('Lint') {
steps {
sh './gradlew lint --no-daemon --stacktrace'
}
}
stage('Danger') {
steps {
sh 'bundle install --verbose'
sh 'bundle exec danger --verbose'
}
}
}
}