git included/excluded regions not working with pipeline jobs

1,934 views
Skip to first unread message

Mike Rooney

unread,
Jul 21, 2016, 4:15:54 PM7/21/16
to Jenkins Users
Hello there!

We've got some Pipeline jobs that are using "Polling ignores commits in certain paths", plus the required "Force polling using workspace" option.

It looks like we've got this set up correctly based on documentation and seeing this in the polling log: "Ignored commit 742b406b1d31bc04cff22c463561b381af0377fc: Found only excluded paths: " However, then it seems to build it anyway. I'm wondering if this has something to do with how Pipeline jobs don't seem to have a direct workspace for the whole thing?

Any tips or thoughts? Here's the full polling log:

Polling for changes in
> git rev-parse origin/master^{commit} # timeout=10
> git log --full-history --no-abbrev --format=raw -M -m --raw acde0988ce12d03c232baab96b0ca0fcd5c268fb..742b406b1d31bc04cff22c463561b381af0377fc # timeout=10
Ignored commit 742b406b1d31bc04cff22c463561b381af0377fc: Found only excluded paths: 
Using strategy: Default
[poll] Last Built Revision: Revision acde0988ce12d03c232baab96b0ca0fcd5c268fb (origin/master)
using .gitcredentials to set credentials
> git --version # timeout=10
> git init /var/cache/tomcat8/temp/hudson7613875610483359225tmp # timeout=10
> git config --local credential.username redacted # timeout=10
> git config --local credential.helper store --file=/var/cache/tomcat8/temp/git7992680616771925108.credentials # timeout=10
> git -c core.askpass=true ls-remote -h https://github.com/redacted/redacted.git # timeout=10
> git config --local --remove-section credential # timeout=10
[poll] Latest remote head revision on refs/heads/master is: 742b406b1d31bc04cff22c463561b381af0377fc
Done. Took 1.6 sec
Changes found

Mark Waite

unread,
Jul 21, 2016, 7:09:09 PM7/21/16
to Jenkins Users
There is a bug report noting that pipeline jobs don't honor the ignore paths.


Mark Waite

--
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 https://groups.google.com/d/msgid/jenkinsci-users/adcfd101-c025-4be9-ac25-493449476ec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Rooney

unread,
Jul 22, 2016, 3:18:22 PM7/22/16
to jenkins...@googlegroups.com
Ah, thanks for the pointer Mark. I actually found that one but assumed it was specific to multibranch. I updated it a bit to be more generic :)

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/wNIMGhJ76rA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtETNKH3-daX3FbgHEwmX5Zsy9%2BYtvgtNpARNa2enXXQHA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages