Questions tagged [jenkins-plugins]

Jenkins is an open source continuous integration software. It is extensible by Plugins which are developed by the core team, users, and developers. There are currently 1300+ plugins available for Jenkins.

The complete list of plugins is available here.

What questions should have this tag?

Any questions about Jenkins plugins, plugin development, and plugin use may be tagged with jenkins-plugins.

To learn more about Jenkins plugins:

Visit "Extend Jenkins" and "Customize Jenkins"

7181 questions
2
votes
0 answers

Jenkins scriptler plugin keep running script on master

I have this pipeline: pipeline { agent { label "node-1" } stages { stage('Hello') { steps { script { env.RELEASE_SCOPE = input message: 'User input required', ok:…
igreenfield
  • 1,618
  • 19
  • 36
2
votes
1 answer

How to display Coverage number in Jenkins pipeline

I have a Jenkins multi branch pipeline. stage('Run tests') { steps { sh 'npm run-script test -- --coverage --testResultsProcessor=jest-junit --outputFile=test-results.xml' } post { …
2
votes
0 answers

Unable to download file from google drive

I am currently trying to run R scripts from Jenkins via the following plugin (https://plugins.jenkins.io/r/) all on an AWS EC2 instance The problem now is that I can't authenticate myself in a non-interactive way as indicated by the gargle library…
2
votes
0 answers

How to clone files from Github to windows VM using Jenkins pipeline?

I'm new to jenkins and I was wondering if you could help me with an example I'm new to jenkins and I wanted to know if you could help me with an example like I want to clone my repository from git hub in the windows vm on gogle I just think for node…
2
votes
1 answer

Create process dump when Jenkins pipeline step runs into timeout

We run unit tests on Jenkins and one of our tests freezes sometimes. We have timeouts defined in the Jenkins pipeline and the freeze triggers the timeout and that kills the testing process. Is there a way (via Jenkins pipelines, maybe via Groovy) to…
hardfork
  • 2,470
  • 1
  • 23
  • 43
2
votes
0 answers

How to pass file parameters to upstream pipeline job in build step plugin

def BUILD_USER = currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause') pipeline { agent {label "master"} parameters { string(name: 'BUILD', defaultValue: '123') booleanParam(name: 'Deploy', defaultValue: 'true') …
2
votes
1 answer

How to use conditional post action in Jenkins pipeline?

I am using Jenkins declarative pipeline and want to perform some post build actions depending on the build status. To be more precise, I want these conditions to be true: beforeAgent true && jobName == 'Cypress Test' Here's my code: post { …
2
votes
1 answer

How to prevent container exposing port to the world, but it can access to the internet?

I run a Jenkins container instance on our server with this command: docker run --name jenkins --restart=on-failure -d \ --network jenkins --env DOCKER_HOST=tcp://docker:2376 \ --env DOCKER_CERT_PATH=/jenkincerts/client --env DOCKER_TLS_VERIFY=1…
2
votes
1 answer

How do I execute ps script in XML

I have one PS script that need to be execute/invoke via XML. getting error like $sessions = Get-RDUserSession foreach($session in $sessions){Invoke- ... Unexpected token 'in' in expression or statement. At line:1 char:78 $sessions =…
2
votes
2 answers

How to send email with attachment in jenkinsfile

I want to send email after post build action in jenkins. Hence I have write jenkinsfile as follows. But i want to send mail with pdf attachment. Note: Please don't suggest email plugin procedure & configuration. I preferred Jenkins file method…
2
votes
0 answers

Error 502 when attempting Gitlab Jenkins webhook

I'm trying to set up a webhook between both my Gitlab server and Jenkins server, however when using the "test" dropdown box in Gitlab's webhook page, I receive the following error: Hook executed successfully but returned HTTP 502 …
Ozmydis
  • 53
  • 4
2
votes
0 answers

Jenkins ssh-agent troubleshooting

The Problem The Jenkins SSH Agent Plugin is failing to successfully load a key with a passphrase that is stored with the Credentials Plugin. The Jenkins Agent is running on the same machine as the Controller. ssh_askpass:…
2
votes
1 answer

Jenkins AWS Credentials plugin does not work

I have faced issue with a Jenkins. Some details: I am using AWS Credentials 1.33 plugin Role was created in AWS IAM. (Action : "sts:AssumeRole") Policy was applied to that role. (Action : "ec2:Describe*") Credentials storing in Jenkins Stage…
2
votes
1 answer

Images Icons are not loading in Jenkins pipeline

I installed Jenking on Docker having following version details. Docker version- 20.10.12 Ubuntu 22.04 Jenking version-2.346.3 Java version- build 11.0.16+8-post-Ubuntu-0ubuntu122.04 I created a pipeline and it is not loading images icons.I have…
2
votes
1 answer

hudson.FilePath : How to list subDirectories as well whole using excludes glob filter

I am working on a Jenkins custom Plugin, where I need to list all valid FilePaths: sub-Directories and child files, excluding some temporary files like .git,.npm,.cache etc, the full list is included in below code sample: String excludes =…
kn_pavan
  • 1,510
  • 3
  • 21
  • 42