Skip to content

Commit 97c188e

Browse files
committed
add pipeline yaml for behave
1 parent 4179fad commit 97c188e

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.tekton/pipeline.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,17 @@ spec:
159159
workspaces:
160160
- name: source
161161
workspace: pipeline-workspace
162+
163+
- name: behave
164+
params:
165+
- name: BASE_URL
166+
value: >-
167+
https://products-hao-li-dev.apps.sandbox-m3.1530.p1.openshiftapps.com/
168+
runAfter:
169+
- deploy-image
170+
taskRef:
171+
kind: Task
172+
name: behave
173+
workspaces:
174+
- name: source
175+
workspace: pipeline-workspace

.tekton/tasks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ spec:
187187
python -m pip install --upgrade pip wheel
188188
pip install -qr requirements.txt
189189
echo "\n*** STARTING APPLICATION ***\n"
190-
sleep 5
191-
curl -i $(params.BASE_URL)
190+
sleep 30
191+
curl -L -I $(params.BASE_URL)
192192
echo "***** Running BDD *****"
193193
behave

0 commit comments

Comments
 (0)