Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
77 views

I have a Jenkins pipeline with a critical stage that runs my custom .NET CLI performing important tasks. I want this stage to be fully atomic, meaning that if someone tries to abort the build while ...
Raj Mohammed's user avatar
0 votes
0 answers
21 views

I am Rajeswari In the groovy script i have to filter who login in Jenkins but I am able to filter the user list all in the manage/security Realm the user list So How to use it they is no direct method ...
Rajeswari S's user avatar
0 votes
1 answer
59 views

I have a main Groovy file with defined methods, and I've loaded a second Groovy script. main-script.groovy node('Node1'){ Method1() Method2() def loadedSecondScript = load('./second-...
diagramd 2020's user avatar
0 votes
1 answer
43 views

I have a main job script, pipline.groovy node('Node1'){ def script1 = load('script1.groovy') script1() //..some code def script2 = load('script2.groovy') } I load two scripts in it, script1....
diagramd 2020's user avatar
0 votes
0 answers
54 views

This is follow up on open request - jenkins groovy update kind="secrets text" credentials store in jenkins Trying alternative approach, and i am getting an error - unable to resolve class ...
Hari Addepalli's user avatar
0 votes
0 answers
92 views

Trying to find out what is wrong. thinking I am missing something. context - want to update the secret in the secrets-text credential store by providing only "Credential ID". I confirm that ...
Hari Addepalli's user avatar
0 votes
1 answer
468 views

My original Jenkinsfile was something along the lines of: DATA = [ ... ] def Helper(def ver) { def cfg = DATA[ver] ... } ... But this gets warnings in the logs to the effect of: Did you ...
BCS's user avatar
  • 79.2k
0 votes
0 answers
76 views

I want to know how to use jenkins plugins to list all of ly jenkins credentails with SystemCredentialsProvider I used : def credsStore = jenkinsInstance.getExtensionList('com.cloudbees.plugins....
noopi's user avatar
  • 1
0 votes
0 answers
59 views

We are running Jenkins on a GKE cluster and have observed a strange issue with our multibranch declarative Jenkins pipeline at the beginning of the pipeline execution. 13:27:09 + git config --global -...
Nishit Kumar's user avatar
0 votes
0 answers
44 views

We are using Jenkins pipelines for the CI/CD in our .NET 9 APIs, but I'm new to this, and I'm stuck regarding how to hardcode a specific credential in the casc.yml file. casc.yml (the place where my ...
Diego Perez's user avatar
  • 3,054
0 votes
0 answers
53 views

I would like to get pod name in groovy, and then to use this name to launch script in this namely pod For example i get pod's name : def testVar = "Test" ...
Bilow Yuriy's user avatar
  • 1,329
0 votes
0 answers
113 views

I would like to disable replay for all jobs, the matrix replay is unchecked. Yet everyone can still replay. I've removed import hudson.model.* from all of the pipelines, and it's still there and ...
Aaron D. Vail's user avatar
1 vote
1 answer
114 views

I'm working on a Jenkins pipeline and can't understand why one of my steps can't be executed on the target machines. Basically, I want to deploy my new code from github repository with Jenkins agent ...
Alex Lebedev's user avatar
1 vote
1 answer
169 views

I've below build.gradle - buildscript { repositories { maven { name 'jenkins' url 'https://repo.jenkins-ci.org/releases/' } } } plugins { id '...
user51's user avatar
  • 10.6k
0 votes
1 answer
64 views

I have programmed in C and Java and a switch statement like this: switch (option) { case 1: do A; case 2: do B; break; default: do C; break; } In those ...
Gustavo C.'s user avatar
0 votes
0 answers
90 views

I have a jenkinsfile in git branch "my-branch" that imports a class. @Library('my-branch') _ import foo.bar.info.stuff However sometimes I create copies of the branch for testing e.g my-...
Bryan Tan's user avatar
  • 362
0 votes
0 answers
40 views

I am using one active choice reactive paarmeter (menifest_to_be) while running the script first time it works properly. But as I go again to build it, it runs the fallback script because it is not ...
Vandana singh's user avatar
0 votes
0 answers
37 views

I come from an OOP background and I want to define reusable steps inside of groovy classes. Inside my declarative jenkins pipeline I then just want to define objects of those classes and execute the ...
Tony Nguyen's user avatar
0 votes
0 answers
35 views

I want to add a button to the build page that when clicked will make part of the table appear (is js even possible when using the active choice plugin?). I'm trying to add a button to the HTML code of ...
malltaf's user avatar
0 votes
0 answers
100 views

I'm new to Jenkins (version 2.492.2 on Windows) and cannot seem to get access to the password from withCredentials via the shell/environment variable. I’ve tried a few variations in the snippet below. ...
user594102's user avatar
0 votes
0 answers
57 views

I have this jenkinsfile: properties([ parameters([ [ $class: 'CascadeChoiceParameter', name: 'ENVIRONNEMENT', choiceType: 'PT_SINGLE_SELECT', filterLength: 1, ...
Nicolas C's user avatar
  • 754
1 vote
1 answer
124 views

My Jenkinsfile looks like this: pipeline { agent any parameters { choice( name: 'project_short_code', description: 'The short code for this project', choices: ['foo','bar']) } ...
Hugh Esco's user avatar
0 votes
0 answers
64 views

I'm using groovy and below is my code, which is not working as expected, its saying, unable to find valid certification path to requested target, although while doing ls I find the file there, can ...
Aditya Malviya's user avatar
0 votes
0 answers
58 views

I have the following Groovy scripted Jenkins pipeline file where the variable partitions is currently inside the function getPartitionParameter(). Since this variable contains a lot of items in real ...
Rafiq's user avatar
  • 1,720
-1 votes
1 answer
92 views

In Jenkins Version 2.440.1 Active Choices Plug-in 版本2.8.3 is OK。 enter image description here But I upgraded to Jenkins Version 2.479.3 Active Choices Plug-in 版本2.8.6 He's not working anymore. enter ...
Logn Xu's user avatar
0 votes
0 answers
20 views

I have a Python Flask application that triggers X (e.g., X=100) asynchronous calls to start Jenkins jobs simultaneously using an API. Once all the jobs have been completed, I need to trigger another ...
nabiharaza's user avatar
0 votes
1 answer
48 views

I have a request in which I want to run a loop on 1st Json capturing one item and one url from it. The url will then retrieve another json which will have versions and phase in it corresponding to the ...
Arpit Gupta's user avatar
0 votes
1 answer
44 views

I have created a k8s Jenkins agent. In a test job, there is a stage to create a file as below stage('Test New file') { steps { script { def fileName = &...
Steve's user avatar
  • 233
0 votes
1 answer
34 views

On Jenkins I want to run my test suite against different environment manually like (stage, QA, prod). How to achieve the same? Also I Want to map environment with special group of test cases. Like To ...
Nitesh Barot's user avatar
0 votes
1 answer
71 views

I am using bash script inside Groovy in the Jenkins pipeline. Jenkins job is parameterized and using a password parameter option named "PASSWORD". The issue is when password contains "$&...
Karthick's user avatar
0 votes
0 answers
51 views

I have a jenkinsfile with 3 parameters to deploy an artifact to an environment. properties([parameters([ choice(name: 'ENVIRONNEMENT', choices: ['dev', 'test', 'pprod', 'prod']'), [ $class: '...
Nicolas C's user avatar
  • 754
0 votes
1 answer
215 views

I created a parameterized Jenkins Job which has two active choiced parameters, the second one is reactive (depends on the first one). Each parameter uses a groovy script to generate their values of ...
Rath256bits's user avatar
1 vote
0 answers
269 views

Jenkins pipeline failed on command:`curl -H 'X-JFrog-Art-Api: ****' -H 'Content-Type: text/plain' --data-raw 'items.find( [2024-12-08T18:21:14.465Z] { [2024-12-08T18:21:14.465Z] "...
davit k's user avatar
  • 11
0 votes
2 answers
371 views

I have a groovy function that creates a json file and I'd like to include that file in the artifacts of the build. String pipelineCustomWorkspace = "/jenkins/pipeline-${BRANCH_NAME}/${...
Gavriel's user avatar
  • 19.3k
0 votes
1 answer
119 views

Nov 18, 2024 4:54:18 PM INFO hudson.WebAppMain contextInitialized Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME") Nov 18, 2024 4:54:18 PM INFO ...
Adnan's user avatar
  • 1
1 vote
0 answers
63 views

I am trying to update the secret id in vault using curl in jenkins pipeline. I am getting error "{"errors":["no data provided"]}" during the curl call : Here is the curl ...
Inderpreet's user avatar
-1 votes
1 answer
42 views

Hello deer human beings I have a Pipeline running on docker, with it i want to build 2 images. but everytime i run it i get this error: Started by user Elias Spycher Checking out git https://github....
Raisybear's user avatar
0 votes
0 answers
51 views

Currently I am rendering the CascadeChoiceParameter with a groovy script that returns a list: ['1', '2', '3'] So in the drop-down I see the values as the lables/text of the choices: 1 2 3 Is there a ...
Gavriel's user avatar
  • 19.3k
1 vote
1 answer
475 views

I have a Jenkinsfile looks like this: import jenkins.org.apache.commons.validator.routines.DomainValidator pipeline { agent any stages { stage ('Validate actions') { ...
Darwick's user avatar
  • 359
1 vote
1 answer
75 views

I have a enormous Jenkinsfile that I need to modularize to improve maintainability, so what I want to do is seperate build, test and deploy into individual files but each has multiple stages and I don'...
Egco's user avatar
  • 31
0 votes
1 answer
77 views

I have below jSON file in which I need to check for 'shortTerm' and 'longTerm' existence. If they exist take the value from the versionName and assign to shortTerm variable else assign 'N/A' if doesn'...
Arpit Gupta's user avatar
1 vote
1 answer
191 views

We have been in the process of setting up a new Jenkins instance and as we have onboarded various projects we have created Docker images to be used in K8s pods to execute various pipelines. Suddenly, ...
Jay Blanchard's user avatar
0 votes
2 answers
143 views

Team, I am making a call to gerrit server and return is I believe json. From this I am trying to read fields but getting error in the first step itself. any hint? My call to gerrit and storing its ...
AhmFM's user avatar
  • 1,842
0 votes
0 answers
130 views

Terms: UT = unit tests IT = integration tests Issue: The following error comes up when I try to build the code on Jenkins. The code contains UT and IT based on Java 17, Maven 3.6.0 and Testcontainers. ...
Faran's user avatar
  • 9
0 votes
1 answer
67 views

The goal of the job is to call a function that runs commands on certain machines. Since the machines will be in difference clouds, subscriptions, etc we have different credentials to be able to access....
PanzerRage's user avatar
0 votes
1 answer
50 views

I want to redeploy a docker container via Jenkinsfile on a remote EC2, but I struggle to find a solution that works with ssh. I want to have to lookup if the container already exist and remove it ...
juronja's user avatar
0 votes
1 answer
92 views

I'm using Jenkins 2.440.2. I want to be able to define all the parameters in a central place like Shared Library and reuse those parameters configuration in different Jenkinsfile. // vars/commonParams....
Prajwal Raju P's user avatar
0 votes
1 answer
72 views

I am implementing significantly more complex rules for working with nodes which the built in node handling... well, can't handle. I need to use this in a function which dynamically generates stages ...
cknowlto's user avatar
1 vote
1 answer
171 views

I'm trying to create a Jenkins pipeline (.jenkinsfile) to perform some actions in AWS, but cannot give everyone in my company access to the pipeline. My thought was to have the user paste in their ...
user1971092's user avatar
1 vote
0 answers
97 views

I have below code in groovy which is providing 2 different output. I want to take the first row values one by one from command1 output and substitute in command2 as variable in loop. import java.text....
Arpit Gupta's user avatar

1
2 3 4 5
60