Jenkins - Do not build for a specific committer or commit a message
source link: https://www.codesd.com/item/jenkins-do-not-build-for-a-specific-committer-or-commit-a-message.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Jenkins - Do not build for a specific committer or commit a message
I'm having some issues with Jenkins and its Git plugin.
Currently, a Gitlab server is triggering the builds but I want to configure the job so that it doesn't build when a specific message is included in the commit.
I've tried using the ci-skip plugin (https://github.com/banyan/jenkins-ci-skip-plugin) but instead of not starting the job, the plugin allows it to start but then aborts it.
It does the job but I'm having aborted builds in Jenkins history and I'm trying to avoid that.
Anyone managed to do that?
Jenkins git plugin itself already provides these kinds of advanced usage.
Exclude specific messages
Job config page -->Source Code Management-->Git-->Add -->Polling ignores commits with certain messages
Exclude specific commiters
Job config page -->Source Code Management-->Git-->Add -->Polling ignores commits from certain users
Don't forget to click the help at the end of each of them to learn the correct way of usage.
Related Articles
Selection of rows that do not exist for a specific user
Can selenium find the location of the link and not look for a specific link?
The auto-complete code does not work for a specific class
Suddenly, I can not build for the iphone simulator
CommonCrypto does not build for arc armv7 iOS
[Safari / Chrome fatal Bug] The HTML5 canvas does not work for a specific case, but Firefox works well
Ionic problem: can not build for Android
The regular expression does not work for a specific number
Wordpress - Messages per page do not work for a specific category-slug.php
The log4j configuration does not work for a specific class
PHP sessions do not work for a specific web page
MATLAB urlread does not work for a specific web page
The Simple Php Mail Function Does Not Succeed for a Specific Web Address
How to search for a specific template with commas and numbers using egrep
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK