Questions tagged [jenkins-multibranch]
23 questions
7
votes
1 answer
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.jenkins.io/parameterized-trigger)
However this plugin…
![](../../users/profiles/306822.webp)
emmdee
- 1,935
- 9
- 35
- 56
5
votes
1 answer
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 variables retain fine both locally and on the remote host.…
![](../../users/profiles/306822.webp)
emmdee
- 1,935
- 9
- 35
- 56
3
votes
1 answer
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…
![](../../users/profiles/321962.webp)
pnovotnak
- 260
- 4
- 11
2
votes
1 answer
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.
Here is the command that WORKS FINE when ran…
![](../../users/profiles/306822.webp)
emmdee
- 1,935
- 9
- 35
- 56
2
votes
1 answer
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 infrastructure across multiple projects, and I don't want…
![](../../users/profiles/304346.webp)
ConnorJC
- 921
- 1
- 7
- 19
1
vote
1 answer
How do you make use of the Same Jenkins Slave already being used by Parent Job for the Child Job as well?
Say I have Jenkins Job "abc_job" which calls another jenkins job "xyz_job" depending on certain conditions.
Now for some reasons, both of the jobs are suppose to run on the same jenkins slave which results in a deadlock condition as job "abc_job"…
![](../../users/profiles/389065.webp)
genius_monkey
- 111
- 1
1
vote
1 answer
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 declaration to build the final command:
environment {
…
![](../../users/profiles/306822.webp)
emmdee
- 1,935
- 9
- 35
- 56
1
vote
1 answer
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. We are now trying to make our build process…
![](../../users/profiles/304396.webp)
JeffGallant
- 113
- 1
- 4
1
vote
1 answer
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 taking user input in "Restrict where this project…
![](../../users/profiles/179084.webp)
user1427944
- 111
- 3
1
vote
1 answer
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" section.
The help text says "Push notification may be…
![](../../users/profiles/105441.webp)
JJ Zabkar
- 135
- 1
- 5
1
vote
1 answer
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 plugins, including p4 (the new Perforce plugin).…
![](../../users/profiles/38665.webp)
Johan
- 746
- 5
- 20
1
vote
1 answer
jenkins groovy file steps management : make steps continue on previous errors
hello I uses a jenkins groovy file to manage steps of my pipeline.
structure is just like :
> ```
>
> 2 pipeline …
![](../../users/profiles/515239.webp)
francois P
- 153
- 11
1
vote
1 answer
Jenkins installation fails on Ubuntu 20.04 with dpkg: error processing package jenkins (--configure)
I was trying to install Jenkins in my server Ubuntu 20.04 with the following commands
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >…
![](../../users/profiles/588994.webp)
Shahrear Bin Amin
- 115
- 2
- 6
1
vote
1 answer
sudo error "Either need terminal or -S option"
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/myapp_FrontUAT
using credential 27a4cc0a-d18c-4a8f-bfcd-788d481e12ed
> /usr/bin/git rev-parse --is-inside-work-tree #…
![](../../users/profiles/531188.webp)
Bhuwan Bhandari
- 21
- 4
0
votes
1 answer
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 instance of Jenkins (as closely as I could, I didn't…
![](../../users/profiles/2124.webp)
Silfheed
- 168
- 2
- 12