Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IF pipeline exists do not try to create #881

Open
LiliamLeme opened this issue Nov 25, 2024 · 0 comments
Open

IF pipeline exists do not try to create #881

LiliamLeme opened this issue Nov 25, 2024 · 0 comments

Comments

@LiliamLeme
Copy link

LiliamLeme commented Nov 25, 2024

When running the deployment, there is the need to check if the azdo pipelines were previously created and delete them if so.
If pipeline exists - needs to be delete before attempting to create it again.
The change will be in this script deploy_azdo_pipelines.sh.
The goal is remediate this error that happens if the deploy runs twice.

  • github_sc_name=mdwdops-github
    ++ jq -r --arg NAME mdwdops-github '.[] | select(.name==$NAME) | .id'
    ++ az devops service-endpoint list --output json
  • github_sc_id=23eefba5-4e29-4f66-acac-4e922b43e75a
  • createPipeline ci-qa-python 'This pipeline runs python unit tests and linting.'
  • declare pipeline_name=ci-qa-python
  • declare 'pipeline_description=This pipeline runs python unit tests and linting.'
  • full_pipeline_name=mdwdops-ci-qa-python

DoD

  • Alter deploy_azdo_pipelines.sh to delete pipelines if already created and deploy them again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants