Questions tagged [jenkins-plugins]
For questions about plugins for Jenkins, the open source automation server.
132
questions
0
votes
1
answer
7
views
How set Jenkins to send email when Pipeline is broken
In Jenkins pipeline I have (using Extended Email plugin):
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('install') {
steps {
echo 'install...'...
0
votes
1
answer
231
views
Execute Kubernetes commands with Jenkins
I am a beginner to devops and right now I'm learning jenkins. I have a kind cluster on my local machine and jenkins running inside a docker container at http://localhost:8000. I wish to execute the ...
1
vote
2
answers
2k
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 ...
2
votes
1
answer
1k
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
5k
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
92
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 ...
1
vote
1
answer
10k
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
580
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
2k
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
487
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
410
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
264
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
3k
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 ...
3
votes
1
answer
931
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....
0
votes
0
answers
213
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 ...
4
votes
2
answers
4k
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
4k
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
4k
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
2k
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&...
0
votes
2
answers
424
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
2k
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
510
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
8k
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
470
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
665
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
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
751
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
2k
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.
...
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
6k
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
3k
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
3k
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
197
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
83
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
10k
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....
2
votes
1
answer
10k
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
2k
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
3k
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
44
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
136
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"
...
1
vote
2
answers
7k
views
Jenkins Plugin Install Failed
I am trying to set up new Jenkins. When I download Suggested Plugins OR try to install any plugin I am getting below error.
I am using Jenkins Latest Version 2.204.1. I have set up this on VM. I am ...
1
vote
1
answer
2k
views
Sonar Quality Gate behavior in Jenkins pipeline is unstable
I have some pipelines in Jenkins, with the SonarQube stage (Version: 6.7.1, build 35068)
In some builds it is aborted due to time out:
12:19:01 Sleeping for 3 min 0 sec
[Pipeline] timeout
12:22:10 ...
1
vote
3
answers
873
views
Jenkins Pipeline Docker Agents with official Jenkins Docker image
I'm using the official jenkins:lts image to host a Jenkins instance, with the Docker control socket forwarded inside the container to allow Jenkins to start new containers, and now I'm trying to run a ...
1
vote
1
answer
1k
views
Jenkins pipeline fails with No such property error
I have Jenkins container (version 2.138.1) with a pipeline which uses the plugins:
Job DSL version 1.7.0
Repository Connector version 1.1.3
P4 version 1.8.14
it fails with the below error:
11:23:...
2
votes
1
answer
2k
views
Database Backup using jenkins
I would like to take MSSQL server db backup. Is there any plugin available for it.
0
votes
1
answer
1k
views
Which plugin is used to copy file from different environment in jenkins
I want to copy file from different environment in jenkins. Can you please guide me to choose the plugin for copying