Jenkins pipeline poll perforce

后端 未结 2 1029
野性不改
野性不改 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: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.

提交回复
热议问题