Is it possible that it check the lastSuccessful one only? if so, I think this is a bad behavior, it should always use the lastest no matter the result.
[image: bodycad] <https://www.bodycad.com/> Jerome Godbout Software Developer 2035 rue du Haut-Bord, Québec, QC, Canada. G1N 4R7 T: +1 418 527-1388 E: [email protected] www.bodycad.com The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. Le contenu de ce message et les pièces jointes sont destinés uniquement pour le(s) destinataire(s) et peuvent contenir des informations confidentielles et / ou privilégiées qui peuvent être protégées légalement contre toute divulgation. Si vous n'êtes pas le destinataire de ce message ou son agent, ou si ce message vous a été adressé par erreur, s’il vous plaît avertir immédiatement l'expéditeur par courriel de réponse, puis supprimer ce message et les pièces jointes. Si vous n'êtes pas le destinataire prévu, vous êtes par la présente informé que toute utilisation, diffusion, copie, ou stockage de ce message ou de ses pièces jointes est strictement interdit. On Fri, Aug 4, 2017 at 10:30 AM, <[email protected]> wrote: > Hi, > I have a strange behavior with the polling system, the polling cron like > work fine but the checkup is totally wrong, it see to use old settings and > not the latest Jenkinsfile (2.72 with up to date plugins in today date). > > My Jenkins file does 3 Hg checkout: > > 1. Jenkinsfile > 2. Build script helpers > 3. Source > > The helper scripts are checkout into tmp subdir (poll is false I don't > want to rebuild because of change on this) (#2) > def build_helper_scripts = "${jenkinsfile_scripts}\\ > JenkinsBuildHelperScripts" > dir("${build_helper_scripts}") > { > checkout changelog: false, poll: false, scm: [$class: 'MercurialSCM', > source: "http://BCADLX04/Jenkinsfile <http://bcadlx04/Jenkinsfile>", > browser:[$class: 'HgWeb', url: "http://BCADLX04/Jenkinsfile > <http://bcadlx04/Jenkinsfile>"], clean: false, credentialsId: '', > revision: "${PIPELINE_BRANCH_NAME}", revisionType: "BRANCH"] > } > > After that the second checkout is main repos inside the workspace (poll is > true, #3): > checkout changelog: true, poll: true, scm: [$class: 'MercurialSCM', > source: "http://BCADLX04/B <http://bcadlx04/Jenkinsfile>odycad", > browser:[$class: 'HgWeb', url: "http://BCADLX04/B > <http://bcadlx04/Jenkinsfile>odycad"], clean: false, credentialsId: '', > revision: "${BRANCH_NAME}", revisionType: "BRANCH"]; > > I started the build manually so the system have the jenkinsfile entry into > it. > The build number *Mercurial Build Data* show the proper revision and the > build complete (with an error, 1 unit test failed). > > Then the polling execute itself at the proper time but I end up with the > following thing into the *Mercurial Polling Log* > > Started on Aug 3, 2017 7:03:00 PM > [CAD_CPP_ContinuousBuild@script] $ hg pull --rev VS2015 > pulling from http://BCADLX04/Jenkinsfile <http://bcadlx04/Jenkinsfile> > no changes found > [CAD_CPP_ContinuousBuild@script] $ hg log --rev VS2015 --template {node} > [CAD_CPP_ContinuousBuild@script] $ hg log --rev VS2015 --template {rev} > no polling baseline in > c:\Jenkins\workspace\CAD_CPP\CAD_CPP_ContinuousBuild@tmp\Jenkinsfile on > Windows 10 Node > ERROR: no such computer Windows 10 Node > Done. Took 2.4 sec > No changes > > > The problems is that the *Windows 10 Node* no more exist for a while now > (way before the yesterday manual execution). The last build (manually > started yesterday) was not using it anymore, it check the Jenkinsfile for > polling (#1), ok I guess this is fair and a wanted behavior, but the real > checkout #3 is not more checked! > > Where is the polling information kept? Can I reset this properly and how > (manual build doesn't seem to had any effect)? > > -- > 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/BLjI5waINUY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/b0b3897b-c67f-41cb-921d-be9a59fb1935%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/b0b3897b-c67f-41cb-921d-be9a59fb1935%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKmu%2Be2-EofdOZL%2BnFPQNDHP3UxkopEvdUOGa0GvD%2B-WRb%2BjXg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
