Sharing files between slave/master in a pipeline

2019-02-15 Thread ZillaYT
I see lots of info on sharing files, but via the GUI. How can I do it in a pipeline script? I want to create a properties file with one job. I then want another job to read this properties file, and yet another cron job to add/modify/delete entries in this file. Why is this so difficult, or

Re: typo on LTS Changelog page

2019-02-15 Thread Rick
I think that you can just create a PR against this if it's convenience for you. Or I can do this. Anyway thanks for your report. Regards, Rick On Fri, Feb 15, 2019 at 11:17 PM 'Kay J' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hello Jenkins users, > > I'm not sure whom to

Re: emailext and Declarative Pipeline; multiple "to"

2019-02-15 Thread ZillaYT
Here's another function, with multiple "to" def sendApprovalTransitionEmail(deploymentEnv) { emailext body: "This build is now paused and awaiting transition by QA. Click here ${env.BUILD_URL} to approve this builds deployment to $deploymentEnv.", subject: "Build is paused - awaiting QA

Re: emailext and Declarative Pipeline; multiple "to"

2019-02-15 Thread ZillaYT
Here's a sample function we call in our pipeline def processTestFailure() { junit "**/build/test-results/**/*.xml" emailext body: "You broke the build It appears that ${env.BUILD_URL} tests are failing (${currentBuild.result}). Change sets:${changelist()}${testStatuses()}",

Re: How to create a persistent file with key/value pairs (properties) that other jobs can use?

2019-02-15 Thread ZillaYT
I found the Config File Provider Plugin that looks promising. However it doesn't tell you how to edit/modify the file? How do I edit it via pipeline? On Friday, February 15, 2019 at 2:31:05 PM UTC-5,

RE: Using a Variable in Execute Shell that has a . in it

2019-02-15 Thread Benjamin Primrose
Periods aren’t valid characters for a shell variable name, I can’t set one to test this. Try using “${deploy.dir}” (as in “ls ${deploy.dir}”). If that doesn’t work extracting it from your environment with env | grep | cut is going to be the best you’ve got assuming you can’t give it a valid

emailext and Declarative Pipeline; multiple "to"

2019-02-15 Thread Zach LaCelle
For my "build failed" emails, I'd like to send an email from my Jenkins Declarative Pipeline to the developers group but also to a fixed list of recipients. Under the Pipeline documentation ( https://jenkins.io/doc/pipeline/steps/email-ext/), I see a class for "recipients", which states that it

How to create a persistent file with key/value pairs (properties) that other jobs can use?

2019-02-15 Thread ZillaYT
I'm working on a process where we create AWS artifacts (Fargate services) needed on a per-feature basis. I want to be able to create these artifacts, and then after a certain expiry period, delete them. So I want a job that will create/modify a properties file that looks like this. As features

How to refer to the private key generated by sshagent plugin?

2019-02-15 Thread ZillaYT
I want to run a packer build in my Jenkins pipeline to create an AWS AMI. Packer needs an ssh key to connect to AWS, but we don't store the private key in our ephemeral Jenkins slaves that run in a Docker container. I therefore was thinking of using the sshagent plugin, and want to do this

Re: Multiple `archiveArtifacts` commands in one Jenkins pipeline

2019-02-15 Thread László Boros
Yeah, we thought about that, but I'm not sure how stashing would work for parallel running stages, also we would want to minimize network traffic between the nodes. Right now I'm investigating where the artifacts are stored and hacking something in shell that could merge the results from

typo on LTS Changelog page

2019-02-15 Thread 'Kay J' via Jenkins Users
Hello Jenkins users, I'm not sure whom to contact, but there seems to be a type in the date of the 2.150.3 LTS update: https://jenkins.io/changelog-stable/ It says What's new in 2.150.3 (2019-01-13) Should be 02 (Feb) instead of 01, right? Regards, Kay -- You received this message because

Re: Multiple `archiveArtifacts` commands in one Jenkins pipeline

2019-02-15 Thread Arnaud bourree
Hi, I've "archiveArtifact" located in many stages in one single pipeline and that works for me on 2.150.2 Arnaud Le ven. 15 févr. 2019 à 14:01, László Boros a écrit : > Anyone with a similar issue? I'd really appreciate any tip. > > Thanks! > Laci > > > On 13 Feb 2019, at 10:37, László Boros

Re: Multiple `archiveArtifacts` commands in one Jenkins pipeline

2019-02-15 Thread Adrien Lecharpentier
as a workaround, you could try to `stash` the binaries and `unstash` them all in the same node and archive them then. But for your problem, it's the first time I see this. Sorry. Le ven. 15 févr. 2019 à 14:01, László Boros a écrit : > Anyone with a similar issue? I'd really appreciate any tip.

Re: Multiple `archiveArtifacts` commands in one Jenkins pipeline

2019-02-15 Thread László Boros
Anyone with a similar issue? I'd really appreciate any tip. Thanks! Laci > On 13 Feb 2019, at 10:37, László Boros wrote: > > Hi everyone! > > We are facing some issues with our main Jenkins pipeline. It consists of > multiple stages which are executed on different machines, and each stage

Re: Does Bitbucket Source Branch plugin support "SSH username with private key" type credentials?

2019-02-15 Thread Cameron Morrison
Yeah, I think so too - I have moved to using a bitbucket app password for Jenkins, which at least limits the damage in case of compromise. Thanks for your help. On Friday, February 15, 2019 at 3:26:09 PM UTC+10, Mark Waite wrote: > > I suspect that it is using API calls that are not available

Re: Does Bitbucket Source Branch plugin support "SSH username with private key" type credentials?

2019-02-15 Thread Cameron Morrison
I have now - it's not clear that's an option in the doco - thanks for your help. On Friday, February 15, 2019 at 3:36:39 PM UTC+10, Richard Bywater wrote: > > Have you added the "Checkout over SSH" behaviour? > > Richard. > > On Fri, Feb 15, 2019 at 3:20 PM Cameron Morrison > wrote: > >> Hi, >>