forked from jenkinsci/docker-ssh-agent
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
49 lines (45 loc) · 1.33 KB
/
Jenkinsfile
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
48
49
/* NOTE: this Pipeline mainly aims at catching mistakes (wrongly formed Dockerfile, etc.)
* This Pipeline is *not* used for actual image publishing.
* This is currently handled through Automated Builds using standard Docker Hub feature
*/
pipeline {
agent none
options {
buildDiscarder(logRotator(daysToKeepStr: '10'))
timestamps()
}
triggers {
pollSCM('H/24 * * * *') // once a day in case some hooks are missed
}
stages {
stage('Build Docker Image') {
parallel {
stage('Windows') {
agent {
label "windock"
}
options {
timeout(time: 60, unit: 'MINUTES')
}
steps {
checkout scm
powershell "& ./make.ps1"
}
}
stage('Linux') {
agent {
label "docker&&linux"
}
options {
timeout(time: 30, unit: 'MINUTES')
}
steps {
checkout scm
sh "make build"
}
}
}
}
}
}
// vim: ft=groovy