12,878 questions
0
votes
0
answers
25
views
Completely disable replay option
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 ...
1
vote
1
answer
46
views
Jenkins pipeline operation not permitted
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 ...
0
votes
0
answers
43
views
Jenkins steps.load can't parse a script
I'm using a Jenkins shared library (stored on git) that has a vars/loader.groovy defined as:
void load(String libName, String path) {
setVariableInGlobalBinding(libName, steps.load(path)
}
private ...
0
votes
1
answer
29
views
Chrome browser is not opening for few tescases when running Regression suite in Jenkins with Python
CI/CD pipeline is created to run regression suite in Jenkins and facing many errors as Test is not opening the Chrome browser and test is running for one hour
Errors are
Parent suite setup failed:
...
0
votes
1
answer
78
views
Masking of secret in Jenkins logs
I have a custom script which fetch the secret from vault . ( I cannot use Jenkins credentials to store the secrets )
My code
def executeCommand(def command) {
return sh(script: command, ...
0
votes
0
answers
21
views
Assistance in formatting curl command in Jenkin's pipeline to call SonarQube
In a pipeline (Jenkins Version 2.496) script block;
I have an environment params variable defined with 4 & to pass multiple values;
SET tools_params=mainBranch=%default_branch%^&...
0
votes
1
answer
35
views
Handle timeout failure in Jenkins pipeline library custom step
We use Jenkins Pipeline shared library custom steps in our build files.
We have a use case where the custom step will perform a potentially long-running operation; one that we want to ensure has '...
1
vote
1
answer
39
views
Jenkins pipeline cannot open an existing file
I have the following test code to try to open and modify the contents of a file:
private def updateTagInfoInFile(final String file) {
final String tmpFile = "tmp.txt"
sh "ls -al /...
1
vote
1
answer
89
views
Using methods from shared scripts in methods defined outside pipeline block in jenkins
In my various pipelines I have been using shared scripts like this:
@Library('SharedScripts') _
def myUtils= new shared.scripts.myUtils()
pipeline{
....
// some stage
myFunction()
}
def ...
0
votes
0
answers
50
views
Is there a way to use a shared library in Jenkins without hardcoding the branch name?
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-...
0
votes
0
answers
41
views
Docker Login to Nexus Fails: "Client.Timeout exceeded while awaiting headers" Message:
I'm trying to log in to my Nexus Docker registry using the following command:
bash
Copier
Modifier
docker login -u admin -p mypassword https://nexus:8083
However, I keep getting this error:
vbnet
...
0
votes
1
answer
65
views
How Can I create an HTML Trivy Report from my Jenkins Pipeline
I am deploying my application with Jenkins pipeline currently running on docker. I dont have an issue getting the Trivy json report but I wish to convert it to HTML. My issue now is, the created HTML ...
0
votes
0
answers
12
views
Jenkins pipeline for java application deployment to Oracle Weblogic server
I have to imolement jenkins pipeline where we use ansible playbooks to undeploy and then deploy 12 war files into oracle weblogic server. When we manually undeploy the war files and then try to deploy ...
0
votes
0
answers
27
views
Active Choice Reactive Parameter Issue
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 ...
0
votes
0
answers
34
views
Reusable Steps for Declarative Pipeline Jenkins/Groovy [duplicate]
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 ...