P4 Plugin - Jenkins Poll not triggering builds despite finding changes

277 views
Skip to first unread message

Marley Kudiabor

unread,
Aug 23, 2017, 4:48:43 PM8/23/17
to Jenkins Users
Hello,

I'm using the P4 Plugin on a stream and trying to poll and Jenkins isn't triggering a poll despite there being changes. It clearly detects changes and tries to parse them but then it goes on to say "no changes"

polling log below:
Started on Aug 23, 2017 4:43:41 PM
P4
: Polling on: master with:jenkins-P4_CS_Copy_HTML_DEV
Found last change 263400 on syncID jenkins-P4_CS_Copy_HTML_DEV
... p4 client -o jenkins-P4_CS_Copy_HTML_DEV
 
+
... p4 info
 
+

P4
Task: establishing connection.
... server: REDACTED
... node: REDACTED
P4
: Polling with range: 263400,now
... p4 changes //jenkins-P4_CS_Copy_HTML_DEV/...@263400,now
 
+
... p4 change -o 263814
 
+
... p4 describe -s 263814
 
+
... p4 change -o 263810
 
+
... p4 describe -s 263810
 
+
... p4 change -o 263809
 
+
... p4 describe -s 263809
 
+
... p4 change -o 263772
 
+
... p4 describe -s 263772
 
+
... p4 change -o 263736
 
+
... p4 describe -s 263736
 
+
... p4 change -o 263735
 
+
... p4 describe -s 263735
 
+
... p4 change -o 263687
 
+
... p4 describe -s 263687
 
+
Done. Took 0.43 sec
No changes


Richard Ginga

unread,
Aug 23, 2017, 4:57:04 PM8/23/17
to jenkins...@googlegroups.com
what is your p4 configuration within the job?

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ae9e9a4c-7e4b-483b-8f52-683f08ccb40c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dick Ginga
Build Engineer

Marley Kudiabor

unread,
Aug 23, 2017, 5:03:31 PM8/23/17
to Jenkins Users
Additionally I should mention I can't expand the +_ javascript link below each p4 action. I'm not sure what should be there. 

I'm also using  Preview Check Only

Marley Kudiabor

unread,
Aug 23, 2017, 5:05:05 PM8/23/17
to Jenkins Users
This is the checkout command

                checkout([$class: 'PerforceScm',
                browser: [$class: 'SwarmBrowser', url: 'REDACTED'],
                credential: 'REDACTED',
                filter: [[$class: 'FilterViewMaskImpl',
                viewMask: '//CALS_Streams/CS_DEV/HTML_DEV']],
                populate: [$class: 'CheckOnlyImpl',
                force: false,
                have: false,
                modtime: false,
                quiet: true],
                workspace: [$class: 'StaticWorkspaceImpl',
                charset: 'none',
                name: 'jenkins-P4_CS_Copy_HTML_DEV',
                pinHost: false]])
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Richard Ginga

unread,
Aug 23, 2017, 5:07:51 PM8/23/17
to jenkins...@googlegroups.com
the "+" mostly works if you have Quiet turned off.

preview check is probably not going to do a build because it has not updated anything in the workspace. It just updated the the workspace's definition on the server to match the current contents of the stream. thus, no changes

On Wed, Aug 23, 2017 at 5:03 PM, Marley Kudiabor <kudi...@gmail.com> wrote:
Additionally I should mention I can't expand the +_ javascript link below each p4 action. I'm not sure what should be there. 

I'm also using  Preview Check Only

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/43779759-ef46-460f-abcd-8b1f86b923a4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Richard Ginga

unread,
Aug 23, 2017, 5:10:12 PM8/23/17
to jenkins...@googlegroups.com
sorry, my p4 builds pre-date pipelines so I'm not that sure of the syntax you have here.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/05ea5e06-a4d6-4827-9d2d-e9fef501f530%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Marley Kudiabor

unread,
Aug 23, 2017, 5:19:58 PM8/23/17
to Jenkins Users
When I check the workspace manually I can see that the files are not up to date. There are files behind the head revision that match the ones in the polling log. I just need to figure out why despite seeing those changes it thinks there are no changes.
Unless this is an actual bug.


On Wednesday, August 23, 2017 at 5:07:51 PM UTC-4, Richard Ginga wrote:
the "+" mostly works if you have Quiet turned off.

preview check is probably not going to do a build because it has not updated anything in the workspace. It just updated the the workspace's definition on the server to match the current contents of the stream. thus, no changes
On Wed, Aug 23, 2017 at 5:03 PM, Marley Kudiabor <kudi...@gmail.com> wrote:
Additionally I should mention I can't expand the +_ javascript link below each p4 action. I'm not sure what should be there. 

I'm also using  Preview Check Only

--
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.

Richard Ginga

unread,
Aug 24, 2017, 9:08:01 AM8/24/17
to jenkins...@googlegroups.com
Marley. do you want Perforce to checkout those files and perform some kind of build? if so, then I think $class: 'CheckOnlyImpl' is not what you want.

I doubt its a bug (it could be) but the Perforce support in Jenkins is pretty robust and has been around for years.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/786bd114-b540-45c7-aebf-27e2c44a7029%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages