ci: make notification optional when waiting for pipeline
@@ -84,6 +84,7 @@ def main():
parser.add_argument('--pipelinerun-file')
parser.add_argument('--namespace')
parser.add_argument('--cicd-cfg', default='default')
+ parser.add_argument('--send-notification', action=argparse.BooleanOptionalAction, default=False)
parsed = parser.parse_args()
@@ -113,6 +114,7 @@ def main():
except RuntimeError as rte:
print(rte)
print('pipeline run failed')
+ if parsed.send_notification:
notify(
pipelinerun_name=pipelinerun_name,
namespace=namespace,
