Re: Project with several Git repositories

2018-05-02 Thread Vivekanand S V
Okay, I just saw its deprecated :( ... the page points to Pipeline Plugin though, do check it out. I don't have experience using that. On Thu, 3 May 2018 at 11:23 Vivekanand S V wrote: > I do that using > https://wiki.jenkins.io/display/JENKINS/Multiple+SCMs+Plugin > >

Re: Project with several Git repositories

2018-05-02 Thread Vivekanand S V
I do that using https://wiki.jenkins.io/display/JENKINS/Multiple+SCMs+Plugin This plugin should help you. On Thu, 3 May 2018 at 10:46 Sébastien Hinderer wrote: > Dear all, > > Say a project has two repositories: one for its source code and one for > its test suite.

Project with several Git repositories

2018-05-02 Thread Sébastien Hinderer
Dear all, Say a project has two repositories: one for its source code and one for its test suite. How would you do CI for such a project? I mean, I did try to define several repositories but it seems that Jenkins only clones the most recently modified rather than cloning all of them

Re: how do I list all the pull request for the repo?

2018-05-02 Thread swordfish
Github pull request. Using groovy script. On Tuesday, May 1, 2018 at 11:55:29 AM UTC-7, ok999 wrote: > > which provider? > > On Tue, May 1, 2018 at 1:12 PM, swordfish > wrote: > >> I want to write a script inside shared library which gives list of all >> pull requests. Any

Re: Bitbucket Branch Source Plugin: I/O error when accessing URL

2018-05-02 Thread Victor Martinez
Although my answer is quite generic it might be helpful: You might be able to debug those issues if you add some loggers in the jenkins instance: - see https://wiki.jenkins.io/display/JENKINS/Logging and https://wiki.jenkins.io/display/JENKINS/Logger+Configuration and you can add this logger:

Bitbucket Branch Source Plugin: I/O error when accessing URL

2018-05-02 Thread Torsten Reinhard
Hi, I´m running Jenkins 1.651.3 and the BitBucket Branch Source Plugin 2.2.11 (latest) When trying to parse the repositories of myProject I always got this error: I/O error when accessing URL: /rest/api/1.0/projects/MYPROJECT In the logs there is: I/O error when accessing URL:

Re: In Jenkins how to pass a parameter from Pipeline job to a freestyle job

2018-05-02 Thread Victor Martinez
Wrong parameter name: Environment is not the name of the parameter but 'OS' therefore if you replace 'params.Environment' with 'params.OS' it should work -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Re: Pipeline: Getting status of all parallel downstream jobs, mark build as unstable

2018-05-02 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Victor Martinez > Build step returns a RunWrapper object therefore you could save their status > in another > hash/array and then query whether any of those downstream builds are unstable > if so >

Re: Nodes via Headless WebStart: Unable to checkout git repository using credentials

2018-05-02 Thread Mark Waite
The USE_SETSID defaults to false because I was unable to predict all the places where users might have depended on the existing behavior. For example, I'm not sure what would happen to a JNLP agent that was started from a shell which had a running ssh-agent. I've learned by sad experience that

RE: Nodes via Headless WebStart: Unable to checkout git repository using credentials

2018-05-02 Thread Jannis Achstetter
Hi Mark, Nailed it! Thanks for the fast response, using setsid solves the problem! I’d like to add this to the wiki but due to some ldap-server fallout, I’m currently unable to login. About the Java property org.jenkinsci.plugins.gitclient.USE_SETSID you mentioned some “compatibility” issues

Re: Pipeline: Getting status of all parallel downstream jobs, mark build as unstable

2018-05-02 Thread Victor Martinez
Hi, Build step returns a RunWrapper object therefore you could save their status in another hash/array and then query whether any of those downstream builds are unstable if so then set the currentBuild as UNSTABLE, for instance based on your snippet: import hudson.model.Result

Re: Nodes via Headless WebStart: Unable to checkout git repository using credentials

2018-05-02 Thread Mark Waite
Since you're running `java -jar agent.jar -jnlpUrl https://MASTER/computer/SLAVENAME/slave-agent.jnlp -secret SECRET` from a command line, the ssh command invoked by command line git believes there is a controlling terminal and prompts on that controlling terminal for the passphrase. You can

In Jenkins how to pass a parameter from Pipeline job to a freestyle job

2018-05-02 Thread Geo PC
I am running a pipeline job and with this we need to pass a parameter to a downsteam job but its not working. We tried as follows: Pipeline JOB: node { parameters { choice( name: 'OS', choices:"Windows\nLinux\nMAC", description:

Nodes via Headless WebStart: Unable to checkout git repository using credentials

2018-05-02 Thread Jannis Achstetter
Hi, I'm facing an issue in a master/slave Jenkins setup. Version of master is 2.89.2, slaves are running Linux. If a node is connected via the "Launch slave agent via SSH" method, everything is working as expected. When I use the "Launch agent via Java Web Start" method and use this

Re: Trouble getting user id variable on builds

2018-05-02 Thread Saranjeet Singh
Hi Victor, I already installed mentioned plugin and it works. Thanks :) On Wednesday, 2 May 2018 16:35:04 UTC+8, Victor Martinez wrote: > > Can you confirm whether > https://wiki.jenkins.io/display/JENKINS/Build+User+Vars+Plugin has been > installed? > > ___ONLY_FOR_TRACKING_PURPOSES > >

Pipeline: Getting status of all parallel downstream jobs, mark build as unstable

2018-05-02 Thread Dirk Heinrichs
Hi, given the following simple pipeline script (just a POC): stage('Testing') { def testSuites = env.TESTSUITES.split(',') def testJobs = [:] testSuites.each { suite -> testJobs[suite] = { build job: 'Executor', parameters: [string(name: 'TESTSUITE', value: suite)] } }

Jenkins automatic push on external repository after pipeline complete

2018-05-02 Thread Francesco Sisca
Hello everyone. I have a question for you. At the moment, I and my team works on a staging repository. Every project have a Jenkins Job with declarative Pipeline. Our target is: When pipeline complete correctly all steps, it can push on production repository all code? i'm try with a simple

Re: Problems adding a slave agent to Jenkins (java.io.IOException: https://myjenkins.org/tcpSlaveAgentListener/ is invalid: 404 Not Found)

2018-05-02 Thread Martin Blankenstein
Hi again, no it works. I needed to update the JRE on the windows machine (SSLHandshakeException). And the firewall wasn't configured for the "fixed" jnlp-port (Failed to connect). Thank you, Martin Am Montag, 30. April 2018 14:53:02 UTC+2 schrieb Martin Blankenstein: > > Thanks you Andreas

Re: Trouble getting user id variable on builds

2018-05-02 Thread Victor Martinez
Can you confirm whether https://wiki.jenkins.io/display/JENKINS/Build+User+Vars+Plugin has been installed? ___ONLY_FOR_TRACKING_PURPOSES I just tried: as suggested in one of the URLs you posted, and it works like a charm: pipeline { agent any stages { stage('build user') {

Re: Trouble getting user id variable on builds

2018-05-02 Thread Saranjeet Singh
Hello, I am also getting same error. Anyone can help on this issue. Thanks On Thursday, 22 June 2017 21:37:10 UTC+8, samuel@madeiramadeira.com.br wrote: > > Does anybody know where can i get help on this? > > Getting the build user id is something someone already needed some time in > the