Re: Getting user who created a pull request with Jenkins pipeline

2019-10-23 Thread Eberhard Beilharz
The help text that appears if you click on ? makes it sound as this applies only to `Jenkinsfile`. On the other side, the heading "Discover pull requests from forks" sounds like it would apply to all pull requests, i.e. if I select "From users with Admin or Write permission" it wouldn't conside

Jeknins pipeline... output message

2019-10-23 Thread Haibinh Nguyen
Hi All, on the Console Output, i see a lot of message like this: [Pipeline] { (Build) No previous build found... No previous build found... No previous build found... No previous build found... No previous build found... No previous b

Re: A file read permissions - Jenkins security

2019-10-23 Thread Tal Yanai
Thanks Daniel, I suppose you mean for a “node”. I checked that. There’s only one Jenkins server and the file system is all within the same nfs so in any case there’s an access to any path. On Wed, 23 Oct 2019 at 21:37 Daniel Beck wrote: > The first build step is running on an agent, and you us

Re: A file read permissions - Jenkins security

2019-10-23 Thread Daniel Beck
The first build step is running on an agent, and you use Java APIs to try to access the file (which look on the master filesystem). https://wiki.jenkins.io/display/JENKINS/Distributed+builds On Wed, Oct 23, 2019 at 6:19 PM Tal Yanai wrote: > Hi, > > I have 2 steps running one after the other. >

A file read permissions - Jenkins security

2019-10-23 Thread Tal Yanai
Hi, I have 2 steps running one after the other. The first step is a Linux shell execution, that simply produce an input file for the second step. Something basic like echo "blabla" > /tmp/input.txt The second step is a Java based plugin that is trying to read the input file, but failed compla

Re: Getting user who created a pull request with Jenkins pipeline

2019-10-23 Thread Mark Waite
I thought that is the case that the GitHub branch source provides with the setting under "Discover pull requests from forks": [image: discover-pull-requests-from-forks.png] On Wed, Oct 23, 2019 at 9:44 AM Eberhard Beilharz wrote: > When using a Jenkins pipeline, how can I get the user who creat

Getting user who created a pull request with Jenkins pipeline

2019-10-23 Thread Eberhard Beilharz
When using a Jenkins pipeline, how can I get the user who created a GitHub pull request? Or even better, how can I check if the user that opened the PR is an org member (or collaborator) or if this is an external PR? We're using multibranch pipeline jobs to build the master branch and the PRs.

AW: Issue with cps-method-mismatches

2019-10-23 Thread Stefan.Rademacher
Hi Reinhold, in can't believe, it was that easy… Thanks, your guess worked!!! Regards Stefan Von: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] Im Auftrag von Reinhold Füreder Gesendet: Mittwoch, 23. Oktober 2019 15:36 An: jenkinsci-users@googlegroups.com Betreff:

Re: pipelines: how to store script output into a variable?

2019-10-23 Thread Pa Y
oh, wow, thank you Rheinhold! vielen Dank! I see there is also a feature request to "Allow sh to return exit status, stdout and stderr all at once" https://issues.jenkins-ci.org/browse/JENKINS-44930?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel On Wednesday, October 23, 2

RE: Issue with cps-method-mismatches

2019-10-23 Thread Reinhold Füreder
Hi Stefan, Just a naïve guess: This might be a little bug in Jenkins pipeline, but you should be able to work around it… “action” in pipeline file is named argument map element for custom “someStep” step Therefore in custom “someStep” step: additionalActions.action … might still work but add

WG: Issue with cps-method-mismatches

2019-10-23 Thread Stefan.Rademacher
Hi everyone, it's been a while, since I asked the question below. I still couldn't figure out, what 'm doing wrong. Is there anyone, who has a hint? Thanks! Stefan _ Von: Rademacher, Stefan Gesendet: Dienstag, 30. Juli 2019 14:04 An: jenkinsci-users@g

RE: pipelines: how to store script output into a variable?

2019-10-23 Thread Reinhold Füreder
Hi, the „funny“ answer is: „java -version” prints the version information to stderr… HTH Reinhold From: jenkinsci-users@googlegroups.com On Behalf Of Pa Y Sent: Mittwoch, 23. Oktober 2019 13:40 To: Jenkins Users Subject: pipelines: how to store script output into a variable? Hi, I looked ex

pipelines: how to store script output into a variable?

2019-10-23 Thread Pa Y
Hi, I looked extensively and the standard solution found in SO or other places doesn't work for me.. do you know what is the problem and how to fix it? thanks for any help in advance! a sample pipeline: --- pipeline { agent any environment { JAVA_INFO= "" } stages {

Download dist from centos8 based jenkins not working

2019-10-23 Thread Bernd Wahlen
we are downloading the build from jenkins like this: aria2c --header="Authorization: Basic " https://jenkins.qeep.net/job/qeep-backend-develop/ws/dist/target/qeep-dist-55-b23534-all.tar (do not try this the server has ip restriction and credentials are x-ed). This was workin