Questions tagged [jenkins-plugins]
For questions about plugins for Jenkins, the open source automation server.
139
questions
0
votes
0
answers
36
views
Is it possible "hide" certain branches of a multi-branch pipeline?
I don't want to disable or filter out other branch jobs.
I want to use multi-branch pipelines, but only present "master" branch to users.
I want to allow only some users to see the other ...
0
votes
0
answers
39
views
Jenkins Bitbucket Server Integration plugin won't let me add or select credentials
I installed the Bitbucket Server Integration plugin and I'm trying to configure it following the instructions on the plugin page. When trying to select the Personal Access Token, the only option is - ...
1
vote
2
answers
747
views
How to get Docker container stdout in Jenkins logs?
(Moved this question from Stack Overflow after getting no traction there; perhaps I'll have more luck here by getting consideration by more DevOps-specific experts)
As part of my Jenkins pipeline, I ...
1
vote
1
answer
450
views
Jenkins - how to run pipeline only if no other job is running on agent/master
I am trying to implement a maintenance job for cleaning up caches (e.g. Maven, NPM).
In order not to disturb running jobs by deleting the caches the maintenance job should only run, if no other job is ...
2
votes
2
answers
2k
views
Jenkins try-catch the actual error instead of hudson.AbortException
how do I get the actual exception of a failed pipeline step/plugin?
I have the following pipeline code
try {
checkout(
scm: [ ... ]
)
} catch (error) {
echo error.getClass()
...
2
votes
0
answers
38
views
Jenkins build fails when no commits in the code (ChannelSftp.throwStatusError)
I have built a jenkins pipeline for executing a test on a windows server. Once the automated test report is generated on the windows server, it ships that report to a different server.
There are ...
0
votes
0
answers
325
views
Unable to install Jenkins plugin via ansible
I've been trying to use ansible to install Jenkins and then once Jenkins has been installed, use the jenkins_plugin module to install the build-pipeline-plugin into it.
Here's my code (also hosted on ...
0
votes
0
answers
836
views
Jenkins on Windows problems with plugin updates "unable to find valid certification path to requested target"
We have Jenkins running on a Windows machine behind a company proxy. I am getting a strange behavior/error when using diffrent kind of users and try to update plugins.
The jenkins update site has a ...
1
vote
1
answer
6k
views
Jenkins checkout GitSCM and git step how does it work internally and why
When I execute my pipeline and I go and see on the actual Jenkins slave, the checked out commit doesn't have latest changes. But the logs and actual files in the workspace on the Jenkins slave running ...
0
votes
1
answer
399
views
Understanding Jenkins plugins and agent
I was trying to understand jenkins agents. This page asks to first create jenkins docker agent. But it doesnt say where to execute these steps?
Q1. Should we be executing these steps on node or a ...
0
votes
1
answer
1k
views
Jenkins Git plugin, Error: Name must follow the pattern
I receive an error after launching a Jenkins pipeline, but right at the SCM step, configure via the plugin (not by the groovy).
The message refers to a "Name" wrong spelled, but I can't ...
1
vote
3
answers
309
views
Jenkins: Stagger triggering of next pipeline steps
I have a daily Jenkins trigger job that sets off a bunch of CI jobs based on a cron timer. All the daily jobs are set off by this trigger job, the daily job itself doesn't do anything.
However, this ...
1
vote
1
answer
325
views
Building a pipeline to recognize changes in a terraform template compared to the git commit before and having it apply changes using specified command
Looking to get pointed in the right direction:
I am trying to build a pipeline that will recognize changes in a remote terraform template that will recognize changes compared to the previous git ...
-1
votes
1
answer
220
views
how often Jenkins should be upgraded [closed]
Currently we have the version 2.200 installed and we want to upgrade it. I want to know what is the best way to do it.
Thank you
1
vote
1
answer
2k
views
net.sf.json.JSONException: Invalid JSON String error on jenkins
Warning: API call to create metrics set failed:
[Pipeline] echo
net.sf.json.JSONException: Invalid JSON String
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143)
at net.sf.json....
2
votes
1
answer
2k
views
Re-running a pipeline job if failed
I've heard about the Naginator plugin, but unfortunately it's only for freestyle job type.
Is there any solution for pipeline jobs to be triggered if they failed? I thought about creating a command in ...
0
votes
0
answers
146
views
how good are azure containers as jenkins agents? [time of execution/stability/price]
I am migrating on-premise Jenkins to Azure Cloud. I use Jenkins to build software,
build takes usually about 8 GB of RAM and uses both Windows and Linux VMs as nodes.
What is better solution in Azure ...
1
vote
0
answers
167
views
Jenkin "unable to find valid certification path to requested target" getting error while installing plugin
We are trying to set up jenkins. When we trying to install plugin getting the below error. We also tried to import the trusted certificate into the JVM directly still getting same error.
sun.security....
1
vote
0
answers
138
views
Jenkins - restrict which nodes can be selected by user when creating jobs (already tried Project-based Matrix Authorization Strategy + folder plugins)
I need to securize nodes of Jenkins and allow them to be used only by one user.
I read existing question : "Jenkins - restrict which nodes can be selected by user when creating jobs"
but ...
3
votes
2
answers
3k
views
Jenkins pipeline : How can I display a downstream / upstream relationship?
I have a pipeline that ends with a step which call build() to run another pipeline, not waiting for its end.
Even when the downstream pipeline is finished, there is no downstream/upstream indication ...
1
vote
1
answer
3k
views
Jenkins - Active Choice DynamicReferenceParameter not returning list
I have been trying unsuccessfully to get DynamicReferenceParameter of the Active Choice plugin to show previously selected values as list, however it either shows them on one line or it treats each ...
2
votes
1
answer
2k
views
how can I make jenkins find 2 jenkinsfile in a repo with multibranch?
I am quite new to DevOps and Jenkins in particular. I have played around and created some pipelines jobs. I wanted now to start practicing with a jenkins in local, and apply CI-CD to an small project ...
0
votes
1
answer
1k
views
Jenkins Docker - Make changes to gitconfig
I have a self-hosted Gitea organization, and the way to access the repos requires some "secret" extraheader in .gitconfig. (2FA is also enabled)
When I look at Jenkins "Configure System&...
1
vote
0
answers
100
views
Parallel execution of same job with different configuration- pipeline jenkinsfile script path is updated incorrect
I have a jenkins job A and i have 5 tests (each triggering job A with updation of different jenkinsfile script path as Before Each test) executing in parallel
Test1 with pipeline-jenkinfile-1
Test2 ...
0
votes
2
answers
390
views
Jenkins and Kubernetes CLI plugin and GKE
I'm trying to use Jenkins Kubernetes CLI plugin from https://plugins.jenkins.io/kubernetes-cli/ to let deploy artifacts from Jenkins to GKE cluster.
Expected Behavior
Get cluster info on kubectl ...
1
vote
1
answer
1k
views
How do i print the list of jobs per plugin in Jenkins
I'm trying to list the jenkins jobs per plugin is being utilized. I see there's a plugin in jenkins, https://github.com/jenkinsci/plugin-usage-plugin, which displays the plugins usage in the Jenkins ...
2
votes
1
answer
299
views
Jenkins: Access job/plugin configuration values inside pipeline
I am trying the access the values set on a job's configuration page from within my pipeline. These values are not made available as params, nor are they injected as envvars.
Setup
Jenkins, v2.263.1
...
1
vote
1
answer
7k
views
Skip stages in Jenkins pipeline
I am using a scripted pipeline where I am required to skip some stages conditionally.Is there a way to show skipped stages on Jenkins UI other than importing org.jenkinsci.plugins.pipeline....
2
votes
2
answers
277
views
How can I make artifacts available to the QA team with a user-friendly UI?
Currently developers push to master, jenkins picks that up, builds it, and then I go to artifacts, download the APK files and upload them in a Microsoft teams group so that the QA team can download ...
0
votes
1
answer
364
views
jenkins build overview page not showing stages in webui
I'm using the image: jenkinsci/blueocean from Dockerhub
The build overview page isn't showing the stages of a build. i.e. the square boxes that represent the stages are not appearing.
Am I missing a ...
1
vote
0
answers
855
views
How to send/get parsed console output file in jenkins?
I have used log parser plug-in to find out the errors and warning and able to see it into console log(parsed) section over Jenkins. Now I have to send those parsed log file to recipient user. To send ...
1
vote
1
answer
3k
views
Is there any Jenkins plugin for pylint results?
I have Pipeline which run Jenkinsfile. one of the stage is pylint:
python -m pylint --rcfile=.pylintrc --exit-zero ${MODULE} > ${WORKSPACE}/testreport/pylint.log
I know there was used to be ...
0
votes
1
answer
553
views
Jenkins multi-agent build switching directories behind the scenes preventing AWS CodeDeploy plugin from zipping built files
I've narrowed my problem down to a very specific cause but am not sure how exactly how to fix it.
A Jenkins server set up using Jenkins-configuration-as-code in a docker container runs a pipelineJob ...
2
votes
1
answer
1k
views
Pass information between Jenkins Job builds
Please excuse my non-fluent terminology..
There is a Jenkins server, master and a few slaves, there is a pipeline job.. let's call it playground
I run the job once, I want to save some data somewhere.
...
1
vote
0
answers
72
views
How can I configure Jenkins pull request builder to run tests on Github dependabot PRs
Our Github project repository is configured to receive security PRs from dependabot, and we get them periodically.
We are using Jenkins with Build Triggers so that when a user comments /test in a PR ...
0
votes
1
answer
3k
views
What is the best approach to deploying to multiple servers using Jenkins?
Trying to figure out the best approach for deploying to multiple servers using Jenkins Blue Ocean pipeline. We will have six servers in development, six in QA, six in Staging, and six in production. ...
1
vote
3
answers
4k
views
Jenkins - restrict which nodes can be selected by user when creating jobs
I have a situation where I have a Jenkins installation that is used by multiple teams. Each team gets their own Jenkins node, which has access to certain parts of the organization that the team is ...
8
votes
1
answer
2k
views
How to have jenkins add a review to a pull request
I have a Jenkins instance, with credentials for a "robot" github account, which we use to interact with the GitHub API as a team. Typically, jobs are defined as declarative pipelines. I am ...
3
votes
2
answers
2k
views
yaml files in jenkins pipeline
Just started out working on jenkins, among other things I'm trying to understand the role of yaml in pipelines. I understand that pipelines or declarative pipeline (do other type of pipelines exist in ...
2
votes
1
answer
2k
views
Passing parameters of extendedChoice type to Jenkins Pipeline via jenkins-cli.jar
I have the following declarative pipeline. It defines checkbox multi-choice parameter:
pipeline {
agent any
options {
ansiColor('xterm')
}
parameters {
...
0
votes
1
answer
150
views
Jenkins 2.164.3 - programmable plugins installations for specific versions
Which tool should I be using in order to be able to control Jenkins plugins from a cli/script in such way that when I have a new installation (e.g. 2.164.3)?
For example, I want to type blueocean - 1....
2
votes
1
answer
80
views
How do I install local application dependencies in a Kubernetes manifest?
In a container, there are RUN statements that you can add to a containerfile (such as a dockerfile) to add further dependencies using the package manager like APT or DNF within a container.
What is ...
0
votes
1
answer
9k
views
Jenkins Plugin:Extended Choice Parameter from JSON file
Extended Choice Parameter plugin query: How to load params dynamically from a JSON file for jenkins build job. Here is my jenkins script to add normal parameters and Extended Choice parameters as well....
3
votes
1
answer
8k
views
how to run Docker/Jenkins behind a proxy
For the past few days I’ve been scratching my head trying to get the Jenkins docker image to work
The issue appears to be a proxy issue.
OS: Ubuntu 16.04 LTS
Running behind work proxy
...
2
votes
1
answer
2k
views
How can I retrieve the execution status of parallel triggered child jobs to a pipeline script
I have a pipeline script that executes child jobs in parallel.
Say I have 5 data (a,b,c,d,e) that has to be executed on 3 jobs (J1, J2, J3)
My pipeline script is in the below format
for (int i = 0; ...
0
votes
1
answer
1k
views
Is it possible to downgrade Jenkins container plugin thought CLI?
I have a job that creates a container from Jenkins image. I would like to add to the script one more option:
Currently, it's installing the image with DSL plugin version 1.77. is there a command I can ...
1
vote
2
answers
2k
views
Jenkins - load scripted parameters from a SCM repo
I am using all kind of parameters like "Active Choice Parameter", "Active Choice Reactive Parameter", "Active Choice Reactive Reference Parameter" that have a lot of Groovy code within them. My ...
1
vote
1
answer
3k
views
Jenkins-Deployment failure, Build successful
I have been trying to work on Jenkins and I'm able to Build the code but unable to deploy on to the Tomcat server. Have checked the users.xml file and
Started by user nakul
Running as SYSTEM
...
1
vote
1
answer
40
views
Is it possible to give only view permission for Jenkins monitoring-plugin
We have the monitoring-plugin installed:
https://github.com/jenkinsci/monitoring-plugin
is there a way to give only view permissions once it is installed?
1
vote
1
answer
121
views
Pipeline flow get stuck at “Notifying stash” after finishing all stages
All our CI projects are getting stuck in the Notify stash. eventually, it's passing, but we're trying to understand why it takes so much time. example:
17:03:01 Notifying Stash at "https://bitbucket"
...