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
source
share