Skip to content

Commit

Permalink
add env_id and update to new signing image (#569)
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Christy Jesuraj <[email protected]>
  • Loading branch information
leochr authored Aug 1, 2023
1 parent 99aa2b2 commit d3b99c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .one-pipeline-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ setup:
curl -X POST -H 'Content-type: application/json' --data '{"text":"<'$user'> Archive operation failure see below "}' $(get_env slack_web_hook_url)
echo " "
done
pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}"
pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}?env_id=ibm:yp:us-south"
curl -X POST -H 'Content-type: application/json' --data '{"text":"The archive operation for '$REPO' has failed."}' $(get_env slack_web_hook_url) </dev/null
curl -X POST -H 'Content-type: application/json' --data '{"text":"Failing pipeline: '$pipeline_url'"}' $(get_env slack_web_hook_url) </dev/null
curl -X POST -H 'Content-type: application/json' --data '{"text":"Destination repository: '$ARCHIVE_DESTINATION_REPO'"}' $(get_env slack_web_hook_url) </dev/null
Expand Down
4 changes: 2 additions & 2 deletions .one-pipeline-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ deploy:
done
sign-artifact:
image: docker-eu-public.artifactory.swg-devops.com/wcp-compliance-automation-team-docker-local/csso-image-sign:6.0.0@sha256:3499f75eb669416536f0d680104e7e9e37147c168459152d716a1fbf9b1af5a2
image: icr.io/continuous-delivery/toolchains/devsecops/csso-image-sign:7.0.0@sha256:e818a62c54f328752a94fd37f73b133e6586d9eb0271afb97ffc6a3faf77fede
script: |
#!/usr/bin/env bash
echo "sign-artifact stage"
Expand All @@ -96,7 +96,7 @@ sign-artifact:
cat rco.pub
acceptance-test:
image: docker-eu-public.artifactory.swg-devops.com/wcp-compliance-automation-team-docker-local/csso-image-sign:6.0.0@sha256:3499f75eb669416536f0d680104e7e9e37147c168459152d716a1fbf9b1af5a2
image: icr.io/continuous-delivery/toolchains/devsecops/csso-image-sign:7.0.0@sha256:e818a62c54f328752a94fd37f73b133e6586d9eb0271afb97ffc6a3faf77fede
script: |
#!/usr/bin/env bash
echo "acceptance-test stage"
Expand Down
2 changes: 1 addition & 1 deletion scripts/pipeline/runTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ else
curl -X POST -H 'Content-type: application/json' --data '{"text":"<'$user'> accceptance test failure see below "}' $(get_env slack_web_hook_url)
echo " "
done
pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}"
pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}?env_id=ibm:yp:us-south"
curl -X POST -H 'Content-type: application/json' --data '{"text":"Your acceptance test failed."}' $(get_env slack_web_hook_url) </dev/null
curl -X POST -H 'Content-type: application/json' --data '{"text":"Failing pipeline: '$pipeline_url'"}' $(get_env slack_web_hook_url) </dev/null
curl -X POST -H 'Content-type: application/json' --data '{"text":"The cluster will be retained for '$hours' hours. If you need more time to debug ( 72 hours ):"}' $(get_env slack_web_hook_url) </dev/null
Expand Down

0 comments on commit d3b99c3

Please sign in to comment.