I want to update my yml file to ignore commits from certain users. Is this possible? Is there a similar solution? Ideally I wouldn't even want to trigger the build in the first place.
Pseudo code example of yml file (ignore syntax, I'm just showcasing what I'm trying to do)
user = git show -s --format='%ae' $BITBUCKET_COMMIT
unwantedUser = "person@mail.com"
pipelines:
tags:
'**' && user != unwantedUser:
- step:
script:
(...)
What would be the actual syntax to achieve that?
I ended up including the [skip ci]
string in my commit messages to avoid triggering the pipeline.
Thanks for taking a moment to answer your own question!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.