Merge lp:~verterok/ols-jenkaas/fix-seed-slave into lp:~ols-jenkaas-admins/ols-jenkaas/trunk

Proposed by Guillermo Gonzalez
Status: Merged
Merged at revision: 914
Proposed branch: lp:~verterok/ols-jenkaas/fix-seed-slave
Merge into: lp:~ols-jenkaas-admins/ols-jenkaas/trunk
Diff against target: 45 lines (+4/-6)
2 files modified
jobs/ols-jenkaas.yaml (+2/-4)
setup/seed-slave (+2/-2)
To merge this branch: bzr merge lp:~verterok/ols-jenkaas/fix-seed-slave
Reviewer Review Type Date Requested Status
Shane M. Pelletier (community) Approve
Online Services Jenkaas Administrators Pending
Review via email: mp+454316@code.launchpad.net

Commit message

Fix seed-slave script

Remove double [[ ]] usage and fix jenkins home

To post a comment you must log in.
Revision history for this message
Shane M. Pelletier (shanepelletier) wrote :

LGTM, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/ols-jenkaas.yaml'
2--- jobs/ols-jenkaas.yaml 2021-03-01 20:44:22 +0000
3+++ jobs/ols-jenkaas.yaml 2023-10-23 20:47:18 +0000
4@@ -21,8 +21,7 @@
5 description: 'Seed {slave} so it can use branches'
6 project-type: freestyle
7 node: '{slave}'
8- # We want to run in the home dir, avoid creating an unused workspace
9- workspace: /home/jenkins
10+ workspace: /var/lib/jenkins
11 builders:
12 # Get the jenkaas branch. It has to be public as no ssh key is
13 # available at that point.
14@@ -46,8 +45,7 @@
15 description: 'Update {slave} for packages and code'
16 project-type: freestyle
17 node: '{slave}'
18- # We want to run in the home dir, avoid creating an unused workspace
19- workspace: /home/jenkins
20+ workspace: /var/lib/jenkins
21 builders:
22 - shell: annotate-output ~/jenkaas/slave/update
23
24
25=== modified file 'setup/seed-slave'
26--- setup/seed-slave 2023-03-10 20:11:21 +0000
27+++ setup/seed-slave 2023-10-23 20:47:18 +0000
28@@ -1,7 +1,7 @@
29 #!/bin/sh -e
30
31 # Use the dirname directly, without changing directories
32-if [[ $BASH_SOURCE = */* ]]; then
33+if [ $BASH_SOURCE = */* ]; then
34 DIRNAME=${BASH_SOURCE%/*}/
35 else
36 DIRNAME=./
37@@ -30,7 +30,7 @@
38 PKGS="$PKGS haveged python-ols-config python-ols-vms python3-ols-vms bzr-olsvms devscripts"
39 # packages for docker support
40 PKGS="$PKGS python-codetree docker.io docker-compose"
41-if [[ "$UBUNTU_CODENAME" == "xenial" ]]
42+if [ "$UBUNTU_CODENAME" == "xenial" ]
43 then
44 PKGS="$PKGS config-manager"
45 fi

Subscribers

People subscribed via source and target branches