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

Ability to build tag without "triggerOnPush" #1729

Open
gpongelli opened this issue Dec 4, 2024 · 0 comments
Open

Ability to build tag without "triggerOnPush" #1729

gpongelli opened this issue Dec 4, 2024 · 0 comments

Comments

@gpongelli
Copy link

gpongelli commented Dec 4, 2024

What feature do you want to see added?

Hi,
in the use case where I want to build only tags and branches under MR, without building EACH branch pushed, I've setup the plugin in following way:

triggers {
        gitlab(branchFilterType: 'All',
            excludeBranchesSpec: '',
            includeBranchesSpec: '',
            cancelPendingBuildsOnUpdate: false,
            ciSkip: true,
            noteRegex: '([Jj]enkins).*(retry).*',
            pendingBuildName: '',
            secretToken: '[REDACTED]',
            setBuildDescription: true,
            skipWorkInProgressMergeRequest: true,
            sourceBranchRegex: '',
            targetBranchRegex: '',
            addVoteOnMergeRequest: true,
            triggerOnAcceptedMergeRequest: false,
            triggerOnApprovedMergeRequest: false,
            triggerOnClosedMergeRequest: false,
            triggerOnMergeRequest: true,
            triggerOnNoteRequest: true,
            triggerOnlyIfNewCommitsPushed: true,
            triggerOpenMergeRequestOnPush: 'source',
            triggerOnPush: false,
            triggerOnPipelineEvent: false,
            triggerToBranchDeleteRequest: false)
    }

with this configuration I can buid branches under MR but tags cannot be built.

The only way to trigger tag builds is changing triggerOnPush: false to true, but the drawback is that EVERY pushed branch will be built (and it's something not wanted).

Is it possible to have a checkmark to explicitly select "Tag Push Event"?

Thanks.

Upstream changes

No response

Are you interested in contributing this feature?

I've no idea on how to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant