Re: [Pipeline] Extract artifacts from a build step

2017-03-28 Thread Danny Rehelis
Seems like your pipeline executes another build which generates the file you'd like to move. If this is the case, you should use archiveArtifacts as stash/unstash can be used with a scope of a single job only. Try: step ([$class: 'CopyArtifact', projectName: , selector: [$class: 'TriggeredBuildSel

Re: Valid use of environment directive

2017-04-06 Thread Danny Rehelis
Encapsulate MY_VAR in script { } blocked required to set a variable when using declarative pipeline inside a Stage. No need to declare it with-in environment { }. On Thu, Apr 6, 2017, 18:42 Idan Adar wrote: > Perhaps Robert (CCed) can help? > > > On Thursday, April 6, 2017 at 6:08:18 PM UTC+3,

Re: How to start a job from another job in a declarative pipeline?

2017-04-12 Thread Danny Rehelis
This is how I do this, should be easy enough - pipeline { stages { stage ('xxx') { steps { ... ... build job: '', parameters: [ string(name: 'PARAM1', value: "xxx"), string(name: 'PARAM2, value: "yyy") ]

Multi-branch Pipeline Plugin - comment trigger only?

2017-04-18 Thread Danny Rehelis
Hello, Is it possible to use Multi-branch Pipeline plugin upon comment only and not for every push to Github? I do not want to run a CI on every single push user makes but only when a specific comment triggered. Thanks -- You received this message because you are subscribed to the Google Group

Declarative Pipeline - Agent wonderment

2017-04-20 Thread Danny Rehelis
Help me understand this please, in case my Pipeline looks like this - pipeline { agent none stages { stage ('Stage #1') { agent { label 'builder' } steps { echo "Hello World" } } stage ('Stage #2') { agent { label 'builder' } steps { echo "Hello Worl

Re: Multi-branch Pipeline Plugin - comment trigger only?

2017-04-24 Thread Danny Rehelis
whether labeled or not. Is there a way to achieve any of the above if not via GUI then via scripted Jenkinsfile? Thanks On Wed, Apr 19, 2017, 09:13 Danny Rehelis wrote: > Hello, > > Is it possible to use Multi-branch Pipeline plugin upon comment only and > not for every push to Github?

Re: How to specify recipients in email-ext step in declarative script?

2017-05-16 Thread Danny Rehelis
Hey David, This should be pretty straightforward, try this: post { success { emailext ( to: a...@me.com; a...@him.com, subject: "SUCCESS", body: "SUCCESS!" ) } failure { emailext ( t

Re: test result graph links are covered by cbwf-stage-view element

2017-05-19 Thread Danny Rehelis
May I hijack this thread and ask you how did you make Jenkins look like that? On Thu, May 18, 2017 at 8:43 PM Trever wrote: > Some time recently, we are unable to click the links under Jacoco, > FindBugs and test results because they are covered over (invisibly) by the > cbwf-stage-view CSS elem

Re: Triggering a multibranch pipeline build from a URL Change

2017-05-27 Thread Danny Rehelis
Have a look here, https://www.youtube.com/watch?v=HhiUY70RVJY&t=20m00s Seems like triggering a Pipeline job from Freestyle job should be soon possible. On Sun, May 28, 2017 at 9:19 AM Daniel Beck wrote: > > > On 26. May 2017, at 19:24, Greg Smith wrote: > > > > > jenkins.triggers.ReverseBuild

GitHub Branch Source Plugin - Suppress status report to github?

2017-06-06 Thread Danny Rehelis
Is it possible to suppress GitHub Branch Source status report to github? We'd like to use githubNotify step instead. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Is it possible to pass data from downstream job to it's parent job?

2017-06-23 Thread Danny Rehelis
Lets say I execute downstream job - stage ('Starting test job') { build job: 'RunTestJob', parameters: [[$class: 'StringParameterValue', name: 'aaa', value: aaa]]} Is it possible pass environment vars or any other vars I set in downstream job back to its parent? -- You received this message

GitHub PR Comment Build Plugin - How to debug

2017-06-27 Thread Danny Rehelis
Hi, I've been notified by my staff that leaving configured comment not always triggers PR build. How to debug this? Nothing getting logged when comment comment is left. How can I track this for better analysis? latest multi-branch plugin with latest version of github pr comment plugin. Thanks -

Re: GitHub PR Comment Build Plugin - How to debug

2017-06-30 Thread Danny Rehelis
Anyone? On Tue, Jun 27, 2017 at 8:47 PM Danny Rehelis wrote: > Hi, > > I've been notified by my staff that leaving configured comment not always > triggers PR build. > How to debug this? Nothing getting logged when comment comment is left. > How can I track this for bett

Re: GitHub PR Comment Build Plugin - How to debug

2017-07-01 Thread Danny Rehelis
This is due timeout GitHub web-hook receive once in a while, got noting to do with the plugin. Just in case someone experiences this aswell, check your Web-Hook Recent Deliveries. On Fri, Jun 30, 2017 at 7:08 PM Danny Rehelis wrote: > Anyone? > > On Tue, Jun 27, 2017 at 8:47 PM Dann

Re: Is pipeline timeout suppose to work?

2017-07-07 Thread Danny Rehelis
It is definitely working, your syntax maybe a bit off. Have a look here: https://jenkins.io/doc/book/pipeline/syntax/ and here: https://support.cloudbees.com/hc/en-us/articles/226554067-Pipeline-How-to-add-an-input-step-with-timeout-that-continues-if-timeout-is-reached-using-a-default-value On Fr

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

2017-08-08 Thread Danny Rehelis
Check this plugin - https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin If you may change your build behavior from user input to parameter, this plugin might serve you well. On Tue, Aug 8, 2017 at 11:00 AM Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > You'd best be served

github-branch-source-plugin Filter issue

2017-08-13 Thread Danny Rehelis
We hit this today while trying to use filter https://issues.jenkins-ci.org/browse/JENKINS-46079 Any particular reason why filter is not per discovered behavior? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and