From 3e2d502bb41b3ad5c2034886197f0dc0e71de834 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 21 Nov 2017 10:58:45 +0100
Subject: [PATCH] [Jenkins] Use jenkins-pipelien 1.0.9; don't stress envinf1
 too much.

-l 30 is a ninja option which spawns no more compile processes if
load is higher than 30.
---
 Jenkinsfile | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 1ad71ab9acd..bd966473caa 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,5 @@
 #!/usr/bin/env groovy
-@Library('jenkins-pipeline@master') _
+@Library('jenkins-pipeline@1.0.9') _
 
 pipeline {
   agent none
@@ -135,7 +135,10 @@ pipeline {
                   '-DOGS_USE_PCH=OFF '
                 env = 'envinf1/cli.sh'
               }
-              build { env = 'envinf1/cli.sh' }
+              build {
+                env = 'envinf1/cli.sh'
+                cmd_args = '-l 30'
+              }
               build {
                 env = 'envinf1/cli.sh'
                 target = 'tests'
@@ -167,7 +170,10 @@ pipeline {
                 env = 'envinf1/petsc.sh'
                 generator = 'Unix Makefiles'
               }
-              build { env = 'envinf1/petsc.sh' }
+              build {
+                env = 'envinf1/petsc.sh'
+                cmd_args = '-l 30'
+              }
               build {
                 env = 'envinf1/petsc.sh'
                 target = 'tests'
@@ -286,6 +292,7 @@ pipeline {
               build {
                 env = 'envinf1/cli.sh'
                 target = 'install'
+                cmd_args = '-l 30'
               }
             }
           }
@@ -315,6 +322,7 @@ pipeline {
               build {
                 env = 'envinf1/petsc.sh'
                 target = 'install'
+                cmd_args = '-l 30'
               }
             }
           }
-- 
GitLab