Skip to content
Snippets Groups Projects
Commit 394d7357 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

- setup build triggers automatically

- improved some comments
parent 0994333f
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,17 @@ def call(ArrayList<String> dependencyList, String gitUrl='') {
'bionic-Release',
'tumbleweed-Debug',
'tumbleweed-Release' ]
def dependencies = dependencyList.join(',')
pipeline {
agent none
// setup build trigger
triggers {
pollSCM 'H/5 * * * *'
upstream dependencies
}
stages {
stage('build') {
// Run the build stages for all labels + build types in parallel, each in a separate docker container
......
......@@ -8,12 +8,14 @@
def doBuildTestDeploy(ArrayList<String> dependencyList, String label, String buildType, String gitUrl) {
// prepare source directory and dependencies
doPrepare(true, gitUrl)
doDependencyArtefacts(dependencyList, label, buildType)
// Add inactivity timeout of 10 minutes (build will be interrupted if 10 minutes no log output has been produced)
// add inactivity timeout of 10 minutes (build will be interrupted if 10 minutes no log output has been produced)
timeout(activity: true, time: 10) {
// start build and tests, then generate artefact
doBuild(label, buildType)
doTest(label, buildType)
doInstall(label, buildType)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment