You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skipping few lines from pipeline based on results of previous task script?? #2178
Hi Team,
I have shell script for example-task with if and else. I want to trigger email in if statment only. "else" statement should stop the pipeline and skip - get: email-resource-source and - put: send-an-email.
I tried hard but don't find any solution. Do we have this feature in concourse.
jobs:
put: send-an-email
params:
subject: email/subject
body: email/body
to: email/usr
Pipeline is broken on every run and it will pass only when it reaches to ELSE statement. I can see only red red :( . I am not happy to see RED i want see BLUE in all cases . :)
@mujahidsof : If I understand your problem correctly, you need the pipeline to branch out depending the results of the previous task. If so you might be interested in on_success, on_failure hooks.
Activity
mujahidsof commentedon Apr 23, 2018
For Work-around i kept try step so it is not breaking the last step put now. :) . Do we have any alternative???
jobs:
plan:
file: cfusagerepo/ci/tasks/usage-task.yml
params:
USERNAME: {{USERNAME}}
PASSWORD: {{PASSWORD}}
ORG: {{ORG}}
ENV: {{ENV}}
TO: {{TO}}
THRESHOLD: {{THRESHOLD}}
put: send-an-email
params:
subject: email/subject
body: email/body
to: email/usr
shashwathi commentedon Apr 27, 2018
@mujahidsof : If I understand your problem correctly, you need the pipeline to branch out depending the results of the previous task. If so you might be interested in
on_success,on_failurehooks.bump etree tsa handlers mux clockwork goxmldsig genproto grpc