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

[cloudbuild] support for steps[*].allowExit #63

Open
bradrydzewski opened this issue Mar 29, 2023 · 1 comment
Open

[cloudbuild] support for steps[*].allowExit #63

bradrydzewski opened this issue Mar 29, 2023 · 1 comment
Labels
cloudbuild Google Cloud Build conversion target gap Harness product gap

Comments

@bradrydzewski
Copy link
Member

bradrydzewski commented Mar 29, 2023

https://cloud.google.com/build/docs/build-config-file-schema#allowexitcodes

Use the allowExitCodes field to specify that a build step failure can be ignored when that step returns a particular exit code.

steps:
- name: 'ubuntu'
 args: ['-c', 'exit 1']
 allowExitCodes: [1]
steps:
- name: 'ubuntu'
 args: ['echo', 'Hello World']

Update added support for allowExitCodes but this is not yet supported by Harness

@bradrydzewski bradrydzewski added gap Harness product gap cloudbuild Google Cloud Build conversion target labels Mar 29, 2023
@bradrydzewski bradrydzewski changed the title [cloudbuild] support for `steps[*].allowExit [cloudbuild] support for steps[*].allowExit Mar 29, 2023
@bradrydzewski
Copy link
Member Author

bradrydzewski commented Apr 3, 2023

This was added to the v1 spec and the mapping is complete, however, v1 does not support this capability yet.

https://github.com/drone/go-convert/blob/fa88d1e840237b74941669da12af6d5692a473c4/convert/cloudbuild/convert.go#L311:L323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloudbuild Google Cloud Build conversion target gap Harness product gap
Projects
None yet
Development

No branches or pull requests

1 participant