Re: Wrong output on .../job/*/maven

2019-03-22 Thread Aaron Digulla
On Thursday, March 21, 2019 at 4:20:54 PM UTC+1, Cyrille Le Clerc wrote: > > > >> Please see new FAQ entry > https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-HowcanItroubleshootproblemsoftriggerofdownstreampipelines > > I have improved the FAQ entry based on your

Re: Role Strategy Plugin - how to apply multiple patterns in project roles

2019-03-22 Thread Kaushal
Maneesh thanks for the reference. @daniel the following worked for me *"(?)joba||(?)jobb||(?)jobc||(?)jobn"* where job{a..n} are the job names. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receivi

Re: Tagging code in a pipeline?

2019-03-22 Thread Robert Nicholson
Ok it’s a https: url So how do you construct the appropriate ssh command then? all examples that use withCredentials seems to fail on my side. > On Mar 21, 2019, at 1:55 PM, Mark Waite wrote: > > Is the repository URL an ssh URL? If not, then sshagent won't help. The ssh > agent does no

Re: Tagging code in a pipeline?

2019-03-22 Thread Mark Waite
Most git repository providers (GitHub, Bitbucket, Gitlab, Visual Studio, Gitea, Assembla, Beanstalk,etc.) provide a small UI component that will allow you to toggle between the https URL to the repository and the ssh URL to the repository. For example, the GitHub box looks like this: [image: imag

SnakeYaml, or why is writeYaml Limited?

2019-03-22 Thread George Sexton
I need to change a pod definition for Jenkins to be in YAML format so that I can add privileged. I have a map already defined, if I can add one more attribute and convert it to yaml, it would be done. The problem is that writeYaml can't send the output to a text variable, and I can't write to a

Applying Jenkins Upgrades

2019-03-22 Thread ShanDar
I need to apply Jenkins Upgrades (currently on Ver 2.60.1) I have know knowledge of how Jenkins Upgrades Do I have to apply all the upgrades incrementally or Can I just to the Latest Upgrade and apply that Any feedback would be greatly appreciated. -- You received this message because you are

How are Jenkins Docker images tested?

2019-03-22 Thread Jakub Bocheński
Hi, I was wondering what kind of test automation is used to test the official Jenkins docker images ( https://hub.docker.com/r/jenkins/jenkins/, https://hub.docker.com/r/jenkins/slave) I was hoping to reuse the test for the custom images we build to extend the slave. The problem is I couldn't

Re: Tagging code in a pipeline?

2019-03-22 Thread Ivan Fernandez Calvo
for the https case, there is an example at https://jenkins.io/doc/pipeline/examples/#push-git-repo El viernes, 22 de marzo de 2019, 15:00:47 (UTC+1), Robert Nicholson escribió: > > Ok it’s a https: url > > So how do you construct the appropriate > > ssh command then? > > all examples that use w

Re: Applying Jenkins Upgrades

2019-03-22 Thread Mark Waite
See the LTS upgrade guides at https://jenkins.io/doc/upgrade-guide/ I've upgraded directly to the latest without using intermediate upgrades. If the installation is large or complex or especially risky, then I would create a backup on another system and test drive the upgrade there. On Fri, Mar

GIT_SSH having no effect

2019-03-22 Thread Robert Nicholson
When I try to use withCredentials() withEnv(‘GIT_SSH=doesnotexist’]) sh ‘git push origin —tags’ For some reason the GIT_SSH seems to have no effect whatever. The git push doesn’t complain that way I would have expected But if I use withEnv(‘PATH=‘]) sh ‘git push o

Re: GIT_SSH having no effect

2019-03-22 Thread Mark Waite
If the repository URL is http or https, I suspect that command line git ignores the values of GIT_SSH and GIT_SSH_COMMAND. If the repository URL is http or https, why not use the solution provided at https://jenkins.io/doc/pipeline/examples/#push-git-repo (as noted by Ivan earlier)? If the reposi

Re: GIT_SSH having no effect

2019-03-22 Thread Robert Nicholson
I guess my thinking was that this is when GIT_SSH and GIT_SSH_COMMAND are relevant. Most of the online examples I’m finding seem to use this approach when the url is a https: one. The other issue is it’s hard to trace what git is doing. I turned on GIT_TRACE and it seems to show that it’s only

Re: Tagging code in a pipeline?

2019-03-22 Thread Robert Nicholson
I haven’t tried any ssh: url based approach yet. but the approaches I’ve seen are when you use GIT_SSH etc to inject your own private key into the ssh that was extracted using withCredentials and written to a tmp folder on disk temporarily but I see no indication that it’s ever using this key.

Re: Error upgrading from 2.121.3 to 2.138.4... jenkins bricked

2019-03-22 Thread Marc Esher
Hi all, thanks for the advice. Apologies for not posting back to the group earlier with my resolution. It turns out, I am nearly certain this is a problem with running the upgrade on Docker. This is docker-for-mac. I found several other instances in non-Jenkins software of Java errorring due t