Comments (7)
- Yes, it triggers even with no changes to commits
- There is a cause added to the build (retrieved through the rawBuild in pipeline scripts I believe) with this class: https://github.com/jenkinsci/github-pr-comment-build-plugin/blob/master/src/main/java/com/adobe/jenkins/github_pr_comment_build/GitHubPullRequestCommentCause.java. You would have to check for that to know if a comment triggered it.
- The config looks ok. I would double check that the hooks are setup properly and send all events (not just push events) to the Jenkins server. I would also take a look at the Jenkins logs (from within the Manage Jenkins pages) and watch the events coming in to make sure they are being properly sent. I would guess that you either a) are only sending push events from github or b) have some other misconfiguration on the system. I believe at one point there were also two types of github server configuration depending on which plugins you have installed, you might try checking for another github server config section in the Manage -> Configure page.
from github-pr-comment-build-plugin.
A quick question really, will this plugin work just with scheduled build. (As I cannot configure the webhook)
from github-pr-comment-build-plugin.
No, to do it without webhooks/events it would have to track the current comments somewhere in a database/filesystem and then trigger the build if it changed. Webhooks are really the only way to get this to work right.
from github-pr-comment-build-plugin.
Thanks @bluesliverx
from github-pr-comment-build-plugin.
Use Case :-
I am trying to trigger my pipeline on an issue commit.
Jenkins Multibranch Pipeline -
Jenkins Shared Library-
triggers { issueCommentTrigger('deploy on dev') }
This prints Build was not started by a trigger
-
if (triggerCause) { echo("Build was started by ${triggerCause.userLogin}, who wrote: " + "\"${triggerCause.comment}\", which matches the " + "\"${triggerCause.triggerPattern}\" trigger pattern.") } else { echo('Build was not started by a trigger') }
It is triggering on every Issue comment rather than searching for deploy on dev
. Have tried multiple of things not sure what is wrong
from github-pr-comment-build-plugin.
@akanshaallyo This is a separate issue, but it looks like you already created a separate one.
from github-pr-comment-build-plugin.
@bluesliverx Yes, I did #24
from github-pr-comment-build-plugin.
Related Issues (20)
- Question - Github App Authentication - Does it work? HOT 2
- Job is triggered twice with this plugin HOT 3
- Better Support for Job DSL configuration of GitHub Organization Folder HOT 2
- The plugin is not triggered with a multibranch pipeline HOT 2
- This plugin triggers the build twice HOT 8
- not able to retrieve getCommentBody or getCommentURL from currentBuild.buildCauses HOT 11
- Unable to trigger build with wildcard in the comment body HOT 2
- Does the latest version support trigger building in multibranch pipeline project? HOT 3
- plugin doesn't trigger a build when a PR comment is issued HOT 2
- Restrict build trigger to project group members HOT 14
- Trigger more than one job with single PR comment HOT 1
- isAuthorized() throws an exception when it should return false
- Comment text as env-var to job HOT 1
- Please give some example pipeline code in the README
- Triggerring more than one job with single PR comment is broken HOT 6
- what is a "trusted" user as defined by this plugin HOT 16
- Thumbs up/down on successful/failed submission HOT 8
- Document the requirement for branch discovery behavior HOT 4
- For private repositories people with Read role can trigger builds HOT 1
- The plugin triggers builds for PRs with same number in different repositories HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pr-comment-build-plugin.