Skip to content

Commit 91e04fb

Browse files
committed
test: add regression test for cyclic Jenkins jobs
1 parent 9e3e2af commit 91e04fb

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bobMinimumVersion: "0.19"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packageScript: |
2+
true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root: True
2+
3+
depends:
4+
- name: sandbox
5+
use: [sandbox]
6+
forward: True
7+
- prog
8+
9+
buildScript: |
10+
true
11+
packageScript: |
12+
true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
depends:
2+
- prog
3+
4+
buildScript: |
5+
true
6+
packageScript: |
7+
true
8+
9+
provideSandbox:
10+
paths: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -e
2+
. ../test-lib.sh 2>/dev/null || { echo "Must run in script directory!" ; exit 1 ; }
3+
4+
# Regression test for #438 to see if jenkins jobs can still be generated even
5+
# if identical package (prog) is built inside and outside of sandbox in same
6+
# project.
7+
8+
cleanup
9+
10+
exp="$(mktemp -d)"
11+
trap 'rm -rf "$exp"' EXIT
12+
13+
run_bob jenkins add local http://example.test/ -r root
14+
run_bob jenkins export local "$exp"

0 commit comments

Comments
 (0)