How to initiate the construction of a multi-block pipeline for fixing into branches?

In the multi-block pipeline job, I configured the assembly (basic listing) to scan branches for the jenkins file. However, I still have to do this assembly manually. What property can I configure to enable GitHub polling or, even better, it fires on new commits.

In general, I am trying to find a way to find out how all the GUI fields are mapped to the keys that I can use in the method properties();. For me there is no way to translate between a GUI form field and a script key option.

node('master') {
    properties([
        [$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10']],
        [$class: 'BuildTriggerProperty???', strategy: 'Build when a change is pushed to GitHub???']
    ]);

...
}

Jenkins version 2.7

+4
source share
2 answers

, GUI , (); .

, :

  • .
  • Snippet Generator
  • :
  • , , Groovy
  • =)
+4

(?), :

:

  • , SNAPSHOT
  • Docker Hub/Registry
  • , ,
  • Stash Pull

"" :

  • , BitBucket

MultiBranch .

0

Source: https://habr.com/ru/post/1654895/


All Articles