Hello
We have problem with Multibranch Pipeline + P4Plugin Modern SCM Helix Library + Polling.
P4Plugin always finds changes in some streams (Polling Log has line "Changes found" but has no lines "... found change: XXX") and triggers new build.
Some The problem appears on all streams are affected, some are not with different delay in time .
All streams have the same Jenkinsfile and Jenkins Library.
All workspaces in Polling logs have unique syncID .
( Multibranch Pipeline was recreated several times and logs checked) .
The problem appears after a while, and I am not able to reproduce STR and create minimal Jenkinsfile .
* The problem appears after after a while, and I don't see the cause of it. only if Modern SCM Helix Library configration is used in Jenkins Library!*
*Workaround to this bug: migrate to Legacy SCM > Perforce Software > Manual Workspace*
Next actions don't solve sometimes trigger the problem: * Jenkins restart * Job cancellation * Manual Job start * Jenkins restart Deleting and re-adding of stream in "Branch Sources > Helix Streams > Include streams" with deleting of child pipeline (for build history cleanup) temporary solve the build loop.
*Library Configuration:* * Name: <some name> * Default version: now * Load implicitly: False * Allow default version to be overridden: False * Include Library changes in job recent changes: False * Retrieval method: Modern SCM * Source Code Management: Helix Library * Perforce Credentials: jenkins * Library Depot Path: //playground/jenkins-main/library/...
* Multibranch Pipeline Configuration: * * Branch Sources > Helix Streams * Perforce Credentials: jenkins * Script Path: Tools/Jenkins/jobs/build/ Jenkinsfile * Add property: (Deprecated) Suppress automatic SCM triggering * Disable: Discard old items * Include streams:
{code:java} // k02 playground / jenkins- main {code} * // k02 playground / dev jenkins - prototype main / library / k02 vars / dev-prototype-99 {code}
*scm-polling foo1 . log groovy * {code:java} Started on Feb 26, 2019 10:29:00 AM P4: Polling on: master with:jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 P4Task: cleanup Client: jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 def call ( p4 ) :cmd:... p4 client -o jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 { p4 client -o jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 echo ( p4 "foo1" ) :stop:4 (p4):cmd:... p4 info } p4 info(p4):stop:5 {code} (p4):cmd:... p4 info p4 info(p4):stop:6 (p4):cmd:... p4 client -o jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 p4 client -o jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579(p4):stop:7 (p4):cmd:... p4 client -i p4 client -iClient jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 saved.(p4):stop:8 (p4):cmd:... View: * // k02 playground / dev-prototype/Tools/Jenkins/library/... // jenkins- lib-df5e5c28-4afd-4be8-802a-ff6832e38579 main / ... Jenkinsfile* (p4) {code : stop:P4 Task: establishing connection. java} ... server: perforce:1666 pipeline { ... agent { node : k02-jenkins { P4 Task: cleanup client: jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 label ( p4 "master" ) :cmd:... p4 client -o jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 p4 client -o jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579(p4):stop:9 } (p4):cmd:... p4 revert /var/jenkins_home/jobs/build/branches/dev-prototype/... } p4 revert /var/jenkins_home/jobs/build/branches/dev-prototype/.../var/jenkins_home/jobs/build/branches/dev-prototype/... - file(s) not opened on this client.(p4):stop:10 P4 Task: remove client: jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 libraries { (p4):cmd:... p4 client -d jenkins- lib -df5e5c28-4afd-4be8-802a-ff6832e38579 p4 client -d jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579Client jenkins-lib-df5e5c28-4afd-4be8-802a-ff6832e38579 deleted. ( p4 "foo" ) :stop:11 }
P4: Polling on: master with:k02-dev-prototype--poll--master options { Found last change 1181055 on syncID k02-dev-prototype--poll--master disableConcurrentBuilds ( p4 ) :cmd:... p4 client -o k02-dev-prototype--poll--master p4 client -o k02-dev-prototype--poll--master skipDefaultCheckout ( p4 true ) :stop:4 (p4):cmd:... p4 info } p4 info(p4):stop:5 (p4):cmd:... p4 info triggers { p4 info pollSCM ( p4 "* * * * *" ) :stop:6 (p4):cmd:... p4 client -o k02-dev-prototype--poll--master } p4 client -o k02-dev-prototype--poll--master(p4):stop:7 (p4):cmd:... p4 client -i stages { p4 client -iClient k02-dev-prototype--poll--master not changed. stage ( p4 "Init" ) :stop:8 { (p4):cmd:... View: steps { null null (p4) checkout scm : stop:P4 Task: establishing connection. ... server: perforce (credential : 1666 ... node: k02 'perforce - ticket- jenkins P4: Polling with range: 1181055 ' , now populate: flushOnly ( p4) pin : cmd:... p4 changes -m20 //k02-dev-prototype--poll--master/...@1181055,now p4 changes -m20 //k02-dev-prototype--poll--master/...@1181055,nowChange 1181055 on 2019/02/25 by yuriyp@k02-dev-prototype-art--kiepc2056 ' !U concept ' (p4) , quiet : stop:9 (p4 false ) :cmd:... p4 repos -C , p4 repos -C(p4) workspace : stop:10
P4: Polling on: master with:k02-dev-prototype--build-win64-sync--k02-bld-win-01 Found last change 1181055 on syncID k02-dev-prototype--build-win64-sync--k02-bld-win-01 streamSpec ( p4) charset : cmd 'none', format : ... p4 client 'bar - o k02 - dev-prototype--build-win64-sync--k02-bld-win-01 p4 client -o k02-dev-prototype--build-win64-sync--k02-bld-win-01(p4) kiepc2006', pinHost : stop:4 (p4):cmd:... p4 info p4 info(p4):stop:5 (p4):cmd:... p4 info p4 info(p4):stop:6 (p4):cmd:... p4 client -o k02-dev-prototype--build-win64-sync--k02-bld-win-01 p4 client -o k02-dev-prototype--build-win64-sync--k02-bld-win-01(p4):stop:7 (p4):cmd:... p4 client -i p4 client -iClient k02-dev-prototype--build-win64-sync--k02-bld-win-01 not changed.(p4):stop:8 (p4):cmd:... View: null null (p4):stop:P4 Task: establishing connection. ... server: perforce:1666 ... node: k02-jenkins P4: Polling with range: 1181055 true , 1181055 (p4) streamName : cmd:... p4 changes -m20 ' // k02-dev-prototype--build-win64-sync--k02-bld-win-01 playground / ...@1181055,1___ p4 changes jenkins - m20 //k02-dev-prototype--build-win64-sync--k02-bld-win-01/...@1181055,1181055Change 1181055 on 2019/02/25 by yuriyp@k02-dev-prototype-art--kiepc2056 main ' !U concept ' (p4 ) :stop:9 (p4 ) :cmd:... p4 repos -C p4 repos -CClient 'k02-dev-prototype--build-win64-sync--k02-bld-win-01' can only be used from host 'k02-bld-win-01'. echo ( p4 "hello" ) :stop:10
P4: Polling on: master with:k02-dev-prototype--build-linux-sync--k02-bld-win-02 Found last change 1181055 on syncID k02-dev-prototype--build-linux-sync--k02-bld-win-02 foo1 ( p4 ) :cmd:... p4 client -o k02-dev-prototype--build-linux-sync--k02-bld-win-02 p4 client -o k02-dev-prototype--build-linux-sync--k02-bld-win-02(p4):stop:4 } (p4):cmd:... p4 info } p4 info(p4):stop:5 } (p4):cmd:... p4 info } p4 info(p4):stop:6 {code} (p4):cmd:... p4 client *scm - o k02-dev-prototype--build-linux-sync--k02-bld-win-02 p4 client -o k02-dev-prototype--build-linux-sync--k02-bld-win-02(p4):stop:7 (p4):cmd: polling . .. p4 client -i log* p4 client -iClient k02-dev-prototype--build-linux-sync--k02-bld-win-02 not changed.(p4) {code : stop:8 java} (p4):cmd:... View: null null (p4):stop: P4 Task : establishing connection. ... server: perforce:1666 ... node: k02-jenkins P4: Polling on: master with range : 1181055,1181055 (p4):cmd:... p4 changes jenkins - m20 //k02 lib - dev df5e5c28 - prototype 4afd - 4be8 - build 802a - linux-sync--k02-bld-win-02/...@1181055,1___ ff6832e38579 p4 changes -m20 //k02-dev-prototype--build-linux-sync--k02-bld-win-02/ ... @1181055,1181055Change 1181055 on 2019/02/25 by yuriyp@k02-dev-prototype-art--kiepc2056 '!U concept ' (p4):stop:9 (p4):cmd:... p4 repos -C p4 repos -CClient 'k02-dev-prototype--build-linux-sync--k02-bld-win-02' can only be used from host 'k02-bld-win-02'.(p4):stop:10 Done. Took 0.22 sec
Changes found {code} config.xml is attached.
Any help would be really appreciated.
Thank you |
|
|