Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jenkins-multibranch]

The tag has no usage guidance.

1
vote
0answers
34 views

Jenkins Pipeline Syntax: Quoting Pains When Using Multiple Quote Blocks

I have kind of a weird setup that I need to run a command as a docker container in a sh block in a Jenkinsfile. Issue that I'm facing is specifically around the awk command used to trim the output. ...
1
vote
1answer
64 views

Jenkins Pipeline: Using Env Var in another Env Var declaration

I would like to make my long "ssh" command reusable as a simple variable throughout my pipeline. To do this, it would be nice to declare my hostname in a var, then use that var in another var ...
0
votes
1answer
215 views

Jenkins unable to get ssh-agent to work, looks for a missing askpass_*.sh file

I installed the ssh-agent before and had everything working nicely with an ssh key that has all the proper permissions for cloning repos from a github project, but now after setting up another ...
1
vote
1answer
68 views

In Jenkins pipeline, using Groovy DSL, how do I spin up a Docker image in the background?

We had a Jenkins build system, using the Groovy DSL, that worked well for us. But then we recently hired a new developer who is supposed to be very good. He decided to rewrite the way our tests work....
2
votes
1answer
2k views

Jenkins: Using Parameterized Trigger Plugin via Pipeline Script

I need to trigger a Jenkins job from another job and pass various values to it for later conditional logic. It seems the Parameterized Trigger Plugin will do exactly what I need. (https://plugins....
0
votes
1answer
91 views

Jenkins Allow user to select node

I have some requirement where I have 2 nodes in jenkins say devl prod In some situation i need user to select from dropdown or type as string the node name on which that job will run but its not ...
1
vote
1answer
590 views

Jenkins Not to Starting After Update

I have a Jenkins instance (running on Ubuntu 16.04.3) that I've kept more or less up to date over the last couple of years. Today I tried updating via aptitude (apt-get dist-upgrade) only to get this ...
0
votes
1answer
19k views

Jenkins Pipeline File - Passing Jenkinsfile variables into further commands

Issue: In passing a variable declared within Jenkinsfile to a sh command that ssh's and executes on a remote host, the variable contents are not retained on the remote host. Built-in Jenkins ...
1
vote
1answer
642 views

Jenkins Pipeline SCM Push Config

I have a Jenkins Pipeline configuration using a Jenkinsfile. I want to leverage Github web hooks, but the only option appears to be periodically polling Github in the "Scan Repository Triggers" ...
0
votes
1answer
131 views

jenkins multiproject environment fails running same code as regular job

here are the contents of the Jenkinsfile: node { git branch: '$BRANCH_NAME', credentialsId: 'IDIDID', url: 'git@bitbucket.org:SOMEPLACE.git' sh '''printenv ls pwd cd somedir virtualenv tmp source tmp/...
2
votes
1answer
383 views

Block changes to Jenkinsfile (Jenkins Pipeline)

I am using the Jenkins Pipeline plugin to build commits on my GitHub repository. However, while I do trust the people on GitHub enough to make commits on the repository, the server is shared ...
1
vote
1answer
994 views

Jenkins, Perforce and Multibranch, how to set up automatic branch detecting?

I'm setting up Jenkins with Pipeline (former Workflow) and trying to configure Multibranch. All documentation I find is about git and svn, but I'm stuck with using Perforce. I have installed all ...