Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

Cyril

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

ingunawa
If you are using “Pipeline script from SCM” and this is on repoB, the pipeline job will trigger when a change/commit pushed to repoB where the pipeline script exists.  
In the pipeline script, even if you are “checkout poll: true, … From repoA” it does not matter.  

You should move the Pipeline script/Jenkinsfile to repoA instead.

-Indra

From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <[hidden email]>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D40B0C87.5D8BE%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

ingunawa
In reply to this post by Cyril
Your best bet is to trigger the pipeline job in your SCM's post-receive hook installed on repoA.

From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <[hidden email]>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D40B17C4.5D8DD%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

ingunawa
In reply to this post by Cyril
Or create old-style job configured to trigger on polling of repoA and it will trigger the pipeline job as “Trigger/call builds on other projects” build step.


From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <[hidden email]>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D40B1829.5D8E1%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cyril
In reply to this post by ingunawa
So, then I don't understand the option: "Don't trigger a build on commit notifications". What is that supposed to do?

Is there any other way not to trigger the build when changes happen to repoB? Putting the script in repoA is not an option because that same script is used with different repos, so I would have to put that script in each repo which means that any changes will have to be duplicated every time.


On Friday, September 23, 2016 at 4:59:27 PM UTC-7, Indra Gunawan (ingunawa) wrote:
If you are using “Pipeline script from SCM” and this is on repoB, the pipeline job will trigger when a change/commit pushed to repoB where the pipeline script exists.  
In the pipeline script, even if you are “checkout poll: true, … From repoA” it does not matter.  

You should move the Pipeline script/Jenkinsfile to repoA instead.

-Indra

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Tv0pbJxNBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com> on behalf of Cyril <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Tv0pbJxNBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cyril....@...>
Reply-To: "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Tv0pbJxNBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Tv0pbJxNBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Tv0pbJxNBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Tv0pbJxNBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/158f9aee-a545-4a3b-a6ef-b02c9c49e17b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cyril
In reply to this post by ingunawa
I didn't think about that option and it sounds like this should work exactly like I need it to be. Thanks for the suggestion.

I would still like to know what "Don't trigger a build on commit notifications" is supposed to do.

On Friday, September 23, 2016 at 5:35:27 PM UTC-7, Indra Gunawan (ingunawa) wrote:
Or create old-style job configured to trigger on polling of repoA and it will trigger the pipeline job as “Trigger/call builds on other projects” build step.


From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com> on behalf of Cyril <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cyril....@...>
Reply-To: "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

ingunawa
If you do not want the pipeline to be triggered at all by commits to RepoB where the pipeline script exists then remove the Poll SCM in the pipeline job.
In the pipeline job, you configured “Pipeline script from SCM” and specified RepoB as location for the pipeline script.  The "Poll SCM” section will poll RepoB not RepoA.  Therefore, remove “Poll SCM”.
Don’t tell me you choose “Multiple SCM” one for RepoB and one for RepoA.  

Your pipeline script will do the checkout of RepoA not using pipeline job definition to define RepoA to checkout.

If the SCM chosen is “Git” the Pipeline’s “Pipeline script from SCM” reuse Git Plugin and "Don't trigger a build on commit notifications” is the same option in “Additional Behaviours” like other job using Git plugin.
You see the ? Of the option, it says :

"If checked, this repository will be ignored when the notifyCommit-URL is accessed regardless of if the repository matches or not.”


Basically you setup a post-receive git hook on the git remote repository side to push notification to Jenkins.
Are you using this or not?
 
Enabling "Don't trigger a build on commit notifications” means the build won’t trigger even if notifyCommit is received.





From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 5:43 PM
To: Jenkins Users <[hidden email]>
Cc: ingunawa <[hidden email]>
Subject: Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

I didn't think about that option and it sounds like this should work exactly like I need it to be. Thanks for the suggestion.

I would still like to know what "Don't trigger a build on commit notifications" is supposed to do.

On Friday, September 23, 2016 at 5:35:27 PM UTC-7, Indra Gunawan (ingunawa) wrote:
Or create old-style job configured to trigger on polling of repoA and it will trigger the pipeline job as “Trigger/call builds on other projects” build step.


From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkins...@googlegroups.com> on behalf of Cyril <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cyril....@...>
Reply-To: "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkins...@googlegroups.com" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkins...@googlegroups.com>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkins...@googlegroups.com>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ET75cZNPBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;"> jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;"> https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;"> https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D40BEAE0.5D8FE%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cyril
I'm not sure what you mean by "Multiple SCM". I don't see that option anywhere so I guess I'm not using it.

I am currently not using git hooks to trigger builds. I thought that the job was supposed to be configured with Polling for it to work but it looks like I misunderstood, and that I just need to have polling set to true (which is the default if not specified) when doing the checkout out in my pipeline script and polling off on the job. I think I now understand what needs to be done for this to work the way I intended. I will try and report back if I encounter any issues. The option "Don't trigger on commit notifications" also makes more sense now.

On Saturday, September 24, 2016 at 8:49:37 AM UTC-7, Indra Gunawan (ingunawa) wrote:
If you do not want the pipeline to be triggered at all by commits to RepoB where the pipeline script exists then remove the Poll SCM in the pipeline job.
In the pipeline job, you configured “Pipeline script from SCM” and specified RepoB as location for the pipeline script.  The "Poll SCM” section will poll RepoB not RepoA.  Therefore, remove “Poll SCM”.
Don’t tell me you choose “Multiple SCM” one for RepoB and one for RepoA.  

Your pipeline script will do the checkout of RepoA not using pipeline job definition to define RepoA to checkout.

If the SCM chosen is “Git” the Pipeline’s “Pipeline script from SCM” reuse Git Plugin and "Don't trigger a build on commit notifications” is the same option in “Additional Behaviours” like other job using Git plugin.
You see the ? Of the option, it says :

"If checked, this repository will be ignored when the notifyCommit-URL is accessed regardless of if the repository matches or not.”


notifyCommit is this: <a href="http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkohsuke.org%2F2011%2F12%2F01%2Fpolling-must-die-triggering-jenkins-builds-from-a-git-hook%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0BXy6gjDYti351s2MNpFRV2pODQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkohsuke.org%2F2011%2F12%2F01%2Fpolling-must-die-triggering-jenkins-builds-from-a-git-hook%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0BXy6gjDYti351s2MNpFRV2pODQ&#39;;return true;">http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
Basically you setup a post-receive git hook on the git remote repository side to push notification to Jenkins.
Are you using this or not?
 
Enabling "Don't trigger a build on commit notifications” means the build won’t trigger even if notifyCommit is received.





From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com> on behalf of Cyril <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cyril....@...>
Reply-To: "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Date: Friday, September 23, 2016 at 5:43 PM
To: Jenkins Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Cc: ingunawa <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ingu...@...>
Subject: Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

I didn't think about that option and it sounds like this should work exactly like I need it to be. Thanks for the suggestion.

I would still like to know what "Don't trigger a build on commit notifications" is supposed to do.

On Friday, September 23, 2016 at 5:35:27 PM UTC-7, Indra Gunawan (ingunawa) wrote:
Or create old-style job configured to trigger on polling of repoA and it will trigger the pipeline job as “Trigger/call builds on other projects” build step.


From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <[hidden email]>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lYRxCHaBBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e81b6487-13c1-4d1d-a5b7-8b1dda5b0f58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cyril
Actually, looking at the comments for the git hook feature, it seems that I still need to have Polling enabled on the job or it won't work. Leaving the schedule blank should work though. I will try that as soon as we can setup the hook on the remote.

On Monday, September 26, 2016 at 12:54:45 PM UTC-7, Cyril wrote:
I'm not sure what you mean by "Multiple SCM". I don't see that option anywhere so I guess I'm not using it.

I am currently not using git hooks to trigger builds. I thought that the job was supposed to be configured with Polling for it to work but it looks like I misunderstood, and that I just need to have polling set to true (which is the default if not specified) when doing the checkout out in my pipeline script and polling off on the job. I think I now understand what needs to be done for this to work the way I intended. I will try and report back if I encounter any issues. The option "Don't trigger on commit notifications" also makes more sense now.

On Saturday, September 24, 2016 at 8:49:37 AM UTC-7, Indra Gunawan (ingunawa) wrote:
If you do not want the pipeline to be triggered at all by commits to RepoB where the pipeline script exists then remove the Poll SCM in the pipeline job.
In the pipeline job, you configured “Pipeline script from SCM” and specified RepoB as location for the pipeline script.  The "Poll SCM” section will poll RepoB not RepoA.  Therefore, remove “Poll SCM”.
Don’t tell me you choose “Multiple SCM” one for RepoB and one for RepoA.  

Your pipeline script will do the checkout of RepoA not using pipeline job definition to define RepoA to checkout.

If the SCM chosen is “Git” the Pipeline’s “Pipeline script from SCM” reuse Git Plugin and "Don't trigger a build on commit notifications” is the same option in “Additional Behaviours” like other job using Git plugin.
You see the ? Of the option, it says :

"If checked, this repository will be ignored when the notifyCommit-URL is accessed regardless of if the repository matches or not.”


notifyCommit is this: <a href="http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkohsuke.org%2F2011%2F12%2F01%2Fpolling-must-die-triggering-jenkins-builds-from-a-git-hook%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0BXy6gjDYti351s2MNpFRV2pODQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkohsuke.org%2F2011%2F12%2F01%2Fpolling-must-die-triggering-jenkins-builds-from-a-git-hook%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0BXy6gjDYti351s2MNpFRV2pODQ&#39;;return true;">http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
Basically you setup a post-receive git hook on the git remote repository side to push notification to Jenkins.
Are you using this or not?
 
Enabling "Don't trigger a build on commit notifications” means the build won’t trigger even if notifyCommit is received.





From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 5:43 PM
To: Jenkins Users <[hidden email]>
Cc: ingunawa <[hidden email]>
Subject: Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

I didn't think about that option and it sounds like this should work exactly like I need it to be. Thanks for the suggestion.

I would still like to know what "Don't trigger a build on commit notifications" is supposed to do.

On Friday, September 23, 2016 at 5:35:27 PM UTC-7, Indra Gunawan (ingunawa) wrote:
Or create old-style job configured to trigger on polling of repoA and it will trigger the pipeline job as “Trigger/call builds on other projects” build step.


From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <[hidden email]>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e7b732f7-84b0-48e9-9255-9a63305a2152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cyril
Everything is now working as expected. In case some people have the same issues, here is a recap of what needs to be done:
  • Create a git hook to notify Jenkins that changes have been committed/pushed: on our end we created a post-receive hook on the remote
  • Enable polling on your job but leave the schedule empty
  • In the Pipeline section, configure it to pull the groovy script from your git repo (in my example it is repoB) but don't add the behavior: "Don't trigger a build on commit notifications"
  • Make sure polling is enabled when you checkout your git repository (in my example it is repoA) in your script: by default it is enabled if you don't specify it


On Monday, September 26, 2016 at 1:32:54 PM UTC-7, Cyril wrote:
Actually, looking at the comments for the git hook feature, it seems that I still need to have Polling enabled on the job or it won't work. Leaving the schedule blank should work though. I will try that as soon as we can setup the hook on the remote.

On Monday, September 26, 2016 at 12:54:45 PM UTC-7, Cyril wrote:
I'm not sure what you mean by "Multiple SCM". I don't see that option anywhere so I guess I'm not using it.

I am currently not using git hooks to trigger builds. I thought that the job was supposed to be configured with Polling for it to work but it looks like I misunderstood, and that I just need to have polling set to true (which is the default if not specified) when doing the checkout out in my pipeline script and polling off on the job. I think I now understand what needs to be done for this to work the way I intended. I will try and report back if I encounter any issues. The option "Don't trigger on commit notifications" also makes more sense now.

On Saturday, September 24, 2016 at 8:49:37 AM UTC-7, Indra Gunawan (ingunawa) wrote:
If you do not want the pipeline to be triggered at all by commits to RepoB where the pipeline script exists then remove the Poll SCM in the pipeline job.
In the pipeline job, you configured “Pipeline script from SCM” and specified RepoB as location for the pipeline script.  The "Poll SCM” section will poll RepoB not RepoA.  Therefore, remove “Poll SCM”.
Don’t tell me you choose “Multiple SCM” one for RepoB and one for RepoA.  

Your pipeline script will do the checkout of RepoA not using pipeline job definition to define RepoA to checkout.

If the SCM chosen is “Git” the Pipeline’s “Pipeline script from SCM” reuse Git Plugin and "Don't trigger a build on commit notifications” is the same option in “Additional Behaviours” like other job using Git plugin.
You see the ? Of the option, it says :

"If checked, this repository will be ignored when the notifyCommit-URL is accessed regardless of if the repository matches or not.”


notifyCommit is this: <a href="http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkohsuke.org%2F2011%2F12%2F01%2Fpolling-must-die-triggering-jenkins-builds-from-a-git-hook%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0BXy6gjDYti351s2MNpFRV2pODQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkohsuke.org%2F2011%2F12%2F01%2Fpolling-must-die-triggering-jenkins-builds-from-a-git-hook%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0BXy6gjDYti351s2MNpFRV2pODQ&#39;;return true;">http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
Basically you setup a post-receive git hook on the git remote repository side to push notification to Jenkins.
Are you using this or not?
 
Enabling "Don't trigger a build on commit notifications” means the build won’t trigger even if notifyCommit is received.





From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 5:43 PM
To: Jenkins Users <[hidden email]>
Cc: ingunawa <[hidden email]>
Subject: Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

I didn't think about that option and it sounds like this should work exactly like I need it to be. Thanks for the suggestion.

I would still like to know what "Don't trigger a build on commit notifications" is supposed to do.

On Friday, September 23, 2016 at 5:35:27 PM UTC-7, Indra Gunawan (ingunawa) wrote:
Or create old-style job configured to trigger on polling of repoA and it will trigger the pipeline job as “Trigger/call builds on other projects” build step.


From: <[hidden email]> on behalf of Cyril <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, September 23, 2016 at 2:57 PM
To: Jenkins Users <[hidden email]>
Subject: Jenkins builds being triggered despite “Don't trigger a build on commit notifications”

I have a Pipeline job that checkouts a git repository (let's call is "repoA") and passes it to some other downstream jobs for further processing. The job's script is stored in a different git repo (let's call it "repoB"). This job is configured with the "Poll SCM" option so that any changes to repoA will trigger it. In the pipeline section, I have selected the "Pipeline script from SCM" option and configured it to get the pipeline script from the master branch of repoB. I have also added the option "Don't trigger a build on commit notifications". The behavior that I'm expecting is that any changes pushed to repoA would trigger the job, and any changes to repoB would not trigger the job. Yet, when I push a change to repoB, the job is triggered.


I don't know if this is a bug, or if I'm missing something. I don't want the job to be triggered when I make changes to the scripts. I only want it to be triggered when a change is pushed to the repo that the script does a checkout on.


I am running Jenkins 2.7.4. My master Jenkins is running on Ubuntu server 16.04.1 LTS. All my Jenkins plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/eb6a4d98-6686-46f6-a411-cc60308f76d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/77731fe9-486f-457b-a6e5-503259bdb37a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8a11a16d-e37b-42f3-8632-8e93fdc1ccc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cosmo
@Cyril -- I am having the same issue as in your original post. I don't understand your solution though. I have webhooks defined for my RepoA and RepoB. In the "Build Triggers" section of the job config I have only "Github hook trigger" -- presumably this will only trigger a build on pushes to RepoA (listed in my "checkout" stage of the script). RepoB, containing the script, is only listed in the pipeline definition as "Pipeline script from SCM." When you say, "Make sure polling is enabled...," do you mean enabled in the "Build Triggers" section or the "Additional Behaviors" under the "Pipeline Definition" section? There are several polling-related options in the latter.

I don't see how enabling polling (with blank spec) will serve to ignore commits to RepoB, especially with "Don't trigger a build on commit notifications" removed. Can you explain please? Why would that ignore commits to RepoB and not to RepoA?



This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received.

DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/842e0785-61e7-475e-90da-5f49d6017e13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

Cyril
Hi Cosmo. Sorry for the late response, I was on vacation. Unfortunately I don’t think I can be very helpful as I don’t work in the same company anymore and I don’t remember what I did exactly even after reading all the messages again. I’m pretty sure that I did not do anything else than what is mentioned in my last post. I would suggest to post a new question and see if someone has a better solution. The behavior of the plugins and/or Jenkins may have changed since so maybe this is not valid anymore.
Also I think we didn’t have any Git hooks set up for the repo containing the Jenkins scripts.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/308ce7b6-195e-46d8-868e-882f96d8d9bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.