-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRIOT.git.jenkinsfile
50 lines (46 loc) · 1.39 KB
/
RIOT.git.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
50
pipeline {
agent {
label {
label 'build-node'
}
}
parameters {
string(
defaultValue: 'riot/master',
description: 'Name of the branch to be built',
name: 'RIOT_VERSION',
trim: true
)
}
stages {
stage('Checkout') {
steps {
checkout scm: [
$class: 'GitSCM',
branches: [[name: "${params.RIOT_VERSION}"]],
extensions: [[$class: 'CleanCheckout']],
userRemoteConfigs: [
[
url: 'https://github.com/RIOT-OS/RIOT.git',
name: 'riot',
refspec: '''+refs/pull/*/head:refs/remotes/riot/pr/*
+refs/heads/*:refs/remotes/riot/*
+refs/tags/*:refs/riot/*'''
],
[
url: 'https://github.com/fjmolinas/RIOT.git',
name: 'fjmolinas',
],
]
]
}
}
}
post {
always {
/* Also remove cloned packages as they are not removed by
`Clean after checkout` */
sh 'git clean -xdff'
}
}
}