Multi-pipeline branch unexpected disabled-- how to enable?

2017-11-27 Thread Mark Stosberg
I'm using the latest version of Jenkins and related Pipeline plugins, and our system has gotten into a stuck state. A key branch is now in a "disabled" state for an unknown reason. The the multi-pipeline is driven by a Jenkinsfile which hasn't changed in several months. Now that the the last

How to dynamically get list of branches or pull requests in Jenkinsfile/groovy?

2017-08-07 Thread Mark Stosberg
Currently I've got an input() call in my Jenkinsfile that prompts users to select a branch name to manually deploy: userInput = input( id: 'userInput', message: 'Manual Deploy?', parameters: [ [$class: 'ChoiceParameterDefinition', choices: 'develop\nmaster\nPR-124', description: 'Branc

Re: Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-05-05 Thread Mark Stosberg
omoted, etc. Some questions: * Should the logging I see in the source code *always* be happening or there something I need to do activate that logging? * Should properties() call work outside a node block? * Are there any serious drawbacks to just manually deleting old build myself? Thi

Re: Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-03-01 Thread Mark Stosberg
buildDiscarder(logRotator(numToKeepStr: '20')) > } > ... > } > > Or with scripted Pipeline: > https://github.com/jenkinsci/jenkins/blob/master/Jenkinsfile#L17-L19 > > HTH > > 2017-02-28 20:24 GMT+01:00 Mark Stosberg >: > >> For clean

Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-02-28 Thread Mark Stosberg
For cleaning up old builds, the "Discard Old Builds" plugin is recommended: https://wiki.jenkins-ci.org/display/JENKINS/Discard+Old+Build+plugin However, the instructions for reference a "post build" step which doesn't exist in the Configure interface for Multibranch Pipeline projects. What's