What is the scripted pipeline equivalent of 'reuseNode'?

2019-07-17 Thread Nicholas Brown
I'm looking for answer to the same question someone ask here: https://stackoverflow.com/questions/50829491/scripted-jenkinsfile-docker-agent-how-to-specify-the-reusenode-flag-and-is-it-r node { stage('foo') { docker.image('debian:stretch').inside { // Want the same workspace. (Agent i

Pipeline step using SloccountPublisher crashes

2016-05-09 Thread Nicholas Brown
Hi. I'm trying to get to grips with defining a pipeline. I tried adding a step with: step([$class: 'hudson.plugins.sloccount.SloccountPublisher', pattern: 'sloccount.sc', encoding: 'UTF-8', commentIsCode: false, numBuildsInGraph: 0, ignoreBuildFailure: false]) but it fails with the rather unhe

Re: Pipeline step using SloccountPublisher crashes

2016-05-09 Thread Nicholas Brown
The following step also fails with a similar cryptic error: step([$class: 'hudson.plugins.cobertura.CoberturaPublisher', coberturaReportFile: 'coverage.xml']) On Monday, 9 May 2016 13:43:46 UTC+1, Nicholas Brown wrote: > > Hi. I'm trying to get to grips with defi

Publisher plugins crash in workflow pipeline

2016-05-26 Thread Nicholas Brown
I'm trying to get to grips with defining a workflow pipeline. I tried adding a step with: step([$class: 'hudson.plugins.sloccount.SloccountPublisher', pattern: 'sloccount.sc', encoding: 'UTF-8', commentIsCode: false, numBuildsInGraph: 0, ignoreBuildFailure: false]) but it fails with this error

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Nicholas Brown
PI (SimpleBuildStep in this case). > > Also, > https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md > > > > On 26.05.2016, at 19:46, Nicholas Brown > > wrote: > > > > I'm trying to get to grips with definin

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Nicholas Brown
I've also raised https://issues.jenkins-ci.org/browse/JENKINS-32524 On Tuesday, 31 May 2016 14:05:01 UTC+1, Nicholas Brown wrote: > > Your correct: > > Neither of them implement this interface: > > https://github.com/jenkinsci/sloccount-plugin/blob/master/src/main/java/h

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Nicholas Brown
See https://issues.jenkins-ci.org/browse/JENKINS-35234 and https://issues.jenkins-ci.org/browse/JENKINS-35096 On Tuesday, 31 May 2016 14:05:01 UTC+1, Nicholas Brown wrote: > > Your correct: > > Neither of them implement this interface: > > https://github.com/jenkinsci/slo

BitBucket endPoint configuration from script error

2018-10-29 Thread Nicholas Brown
I've been trying to configure and Bitbucket Server endpoint using groovy script from the script console. I've been following the example given here: https://plugins.jenkins.io/cloudbees-bitbucket-branch-source but using a BitbucketServerEndpoint instead of bitbucketCloudEndpoint. My code is:

Re: BitBucket endPoint configuration from script error

2018-10-29 Thread Nicholas Brown
doh, simple typo. I'm just not very good at reading the error messages. bitbucketEndpointConfiguration.updateEndpoint(BitbucketServerEndpoint) should be: bitbucketEndpointConfiguration.updateEndpoint(endPoint) On Monday, 29 October 2018 13:00:10 UTC, Nicholas Brown wrote: > > I