Skip to content

Commit

Permalink
Merge pull request #462 from cloud-gov/fix-audit-ci
Browse files Browse the repository at this point in the history
Remove puts to git-resource in ci pipeline
  • Loading branch information
drewbo authored May 9, 2024
2 parents 6ad6aec + a19b4de commit 1957031
Showing 1 changed file with 15 additions and 38 deletions.
53 changes: 15 additions & 38 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,6 @@ jobs:
trigger: true
passed: [set-pipeline]

- put: src
resource: src-((deploy-env))
params:
path: src
status: pending
base_context: concourse
context: audit-dependencies

- task: pip-audit
config:
<<: *python-image
Expand All @@ -240,39 +232,24 @@ jobs:
path: ci/tasks/pip-audit.sh

on_failure:
in_parallel:
- put: src
resource: src-((deploy-env))
params:
path: src
status: failure
base_context: concourse
context: audit-dependencies
- put: slack
params:
text: |
:x: FAILED: pages build container dependency audit on ((deploy-env))
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME?vars.deploy-env="((deploy-env))"&vars.git-branch="((git-branch))"|View build details>
channel: ((slack-channel))
username: ((slack-username))
icon_url: ((slack-icon-url))
put: slack
params:
text: |
:x: FAILED: pages build container dependency audit on ((deploy-env))
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME?vars.deploy-env="((deploy-env))"&vars.git-branch="((git-branch))"|View build details>
channel: ((slack-channel))
username: ((slack-username))
icon_url: ((slack-icon-url))

on_success:
in_parallel:
- put: src
resource: src-((deploy-env))
params:
path: src
status: success
base_context: concourse
context: audit-dependencies
- put: slack
params:
text: |
:white_check_mark: SUCCESS: Successfully passed pages build container dependency audit on ((deploy-env))
channel: ((slack-channel))
username: ((slack-username))
icon_url: ((slack-icon-url))
put: slack
params:
text: |
:white_check_mark: SUCCESS: Successfully passed pages build container dependency audit on ((deploy-env))
channel: ((slack-channel))
username: ((slack-username))
icon_url: ((slack-icon-url))

############################
# RESOURCES
Expand Down

0 comments on commit 1957031

Please sign in to comment.