Jenkins pipeline poll perforce

后端 未结 2 999
野性不改
野性不改 2021-01-14 20:58

In continuation to jenkins-pipeline-syntax-for-p4sync - I am not able to get the \"Poll SCM\" option work for my pipeline job. Here is my configuration:

  1. \"Poll
相关标签:
2条回答
  • 2021-01-14 21:16

    After updating all the plugins to latest (as of this post date) and restarting the jenkins server - the polling appears to be working with the exact same configuration (job now has the poll log link). I'm not sure what exactly resolved the issue - but I consider it resolved.

    0 讨论(0)
  • 2021-01-14 21:35

    If you go to the Groovy snippet generator and check the "include in polling" checkbox, you'll see that the generated code includes a line item for it:

    checkout([
                poll: true,
    

    As an aside, you may run into problems at the moment using ${NODE_NAME} in your workspace name. The polling runs on the master, so it might not properly find the change number of your previous build. If that's the case, I know a fix for it should be coming shortly.

    0 讨论(0)
提交回复
热议问题