forked from DisplayLink/evdi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_linux_master
34 lines (34 loc) · 1.2 KB
/
Jenkinsfile_linux_master
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
// Copyright (c) 2022 DisplayLink (UK) Ltd.
pipeline {
agent {
dockerfile {
filename 'src/Dockerfile'
}
}
stages {
stage ('Generate stages') {
steps {
dir('src') {
script {
def list = [ "origin/devel" ]
def branches_to_build = sh(script: '''git branch -r -l origin/release/* | xargs''', returnStdout: true).trim()
list.addAll(branches_to_build.split())
for(int i=0; i < list.size(); i++) {
def branchName = list[i];
stage(branchName) {
withEnv(["STAGE_BRANCH=$branchName"]) {
sh '''
git checkout ${STAGE_BRANCH}
./ci/build_against_kernel --repo-ci master
./ci/build_against_kernel --repo-ci rc
./ci/build_against_kernel --repo-ci all
'''
}
}
}
}
}
}
}
}
}