How to Ignore Line Length PHP_CodeSniffer

I have been using PHP_CodeSniffer with jenkins, my build.xml was configured for phpcs as below <target name="phpcs"> <exec executable="phpcs"> <arg line="--report=checkstyle...

Jenkins won't start: Failed to listen on port 8080

I am using Jenkins and since yesterday it has stopped working. I looked at the Windows Service and it had been stopped (somehow). I restarted it but it stopped immediately after. I have looked...

how do i run script after successful build in jenkins

I am running automated builds in jenkins after successful build the jars are copying in to my scp repository. I configured in post build action publish artifacts in to scp repository. Everything...

Is there a way to set multiple parameters with one choice in jenkins

I am trying to manage a jenkins build where a user may select to build either from master, or a specific branch. There are several variables that need to be set depending on what the user...

How/When does Execute Shell mark a build as failure in Jenkins?

The horror stories I found while searching for an answer for this one... OK, I have a .sh script which pretty much does everything Jenkins supposed to do: checks out sources from SVN build the...

hudson.util.HudsonFailedToLoad error in Jenkins

I am getting below error when i am trying to access my Jenkins server, hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error:...

How to trigger a Jenkins job by another job at a certain time?

I have two jobs, JobA and JobB, JobA runs every day at 13.00 and registers some payments. I want JobA to trigger JobB which verifies the payments, if and only if JobA is successful and JobB needs...

sonar runner authorization error

I'm trying to send a job to sonarqube from jenkins. However I'm getting an error saying te following when I run the job ERROR: Error during Sonar runner...

Hibernate is not creating tables with H2 in memory database

I'm trying to test an application which uses SpringMVC and Hibernate with MySQL. I tried using HSQLDB but since the syntax is not the same as MySQL the queries may not work, so I decided to go to...

Jenkins Cannot run program "python" CreateProcess error=2, The system cannot find the file specified

When I run below python script using Jenkins, it is throwing below error. Jenkins Cannot run program "python" CreateProcess error=2, The system cannot find the file specified Below is my code...

How to differentiate build triggers in Jenkins Pipeline

I'm hoping to add a conditional stage to my Jenkinsfile that runs depending on how the build was triggered. Currently we are set up such that builds are either triggered by: changes to our git...

Jenkins Declarative Pipeline detect first run and fail when choice parameters present

I often write Declarative Pipeline jobs where I setup parameters such as "choice". The first time I run the job, it blindly executes using the first value in the list. I don't want that to happen....

Get version number from package.json in React Redux (create-react-app)

OP EDIT: If anyone else comes across this: the app was created using create-react-app, which limits importing to within the src folder. However if you upgrade react-scripts to v1.0.11 it does let...

Jenkins - Git Submodule Credentials Different from Parent Repo

Background Jenkins is being used to build an artifact from a Git repo that has a Git submodule. The submodule(s) are not in the same repo or even at the same endpoint as the parent project. The...

java.lang.Exception: The server rejected the connection: None of the protocols were accepted:

I am running jenkins master on kubernetes as docker container with docker image (jenkinsci/blueocean:1.5.0). I am trying to add a slave node (ec2 ubuntu instace installed java version "1.8.0_171")...

How to use job import plugin in jenkins

I don't have access to both servers so cli is not an option only jenkins ui is available. I need to import jobs using job import plugin but i am unable to figure how to configure the plugin so as...

How to run Docker and Docker-Compose from a Dockerized Jenkins container?

I have this docker-compose to run a Dockerized Jenkins container, version: '2' services: jenkins: image: 'jenkinsci/blueocean' environment: - JENKINS_OPTS="--prefix=/jenkins" ...

Jenkins is showing "Please wait while jenkins is getting ready to work" continuous, What i need to do?

I have Jenkins server which has 500+ jobs, suddenly, Jenkins server got rested due to some issue, Now Jenkins still showing "Please wait while Jenkins is getting ready to work", Please provide the...

How to upload a file in popup using Selenium remote webdriver on linux machine

I have to automate an application and am working on Windows machine. On clicking some button, window popup opens where I can choose a file or enter the path. Upload functionality is working fine...

How to get docker-compose to work in docker generated jenkins pipeline on windows?

I am running this code to start up a dockerized jenkins. This works. docker run -p 81:8080 -p 50000:50000 --name myjenkins --privileged -v %cd%/jenkins:/var/jenkins_home -v...

Angular - Getting sh: ng: command not found while running "npm run ng build" in Jenkins

I am trying to build an angular project in Jenkins Tried both "build": "npm run ng build", as well as "build": "ng build" but getting the same error. Could it be because of the way this...

Recursive AWS Lambda function calls - Best Practice

I've been tasked to look at a service built on AWS Lambda that performs a long-running task of turning VMs on and off. Mind you, I come from the Azure team so I am not familair with the styling or...

How to configure dynamic parameters in declarative pipeline (Jenkinsfile)?

Using the declarative pipeline syntax, I want to be able to define parameters based on an array of repos, so that when starting the build, the user can check/uncheck the repos that should not be...

How to set Active Choice Parameter's script sandbox via Job DSL

I have a JobDSL script that creates a Jenkins pipeline job with Active Choice parameters provided by Active Choice Parameters plugin. Unfortunately, JobDSL doesn't support parameter that enables...

C# WASM without Blazor

I want to be able to call C# code from JavaScript. The mono project used to have a WASM SDK that you could download from their old Jenkins server, but that is no longer public. Existing docs tend...

Jenkins requires Java versions [8, 11] but you are running with Java 16 from C:\Program Files\Java\jdk-16.0.1

Trying to install Jenkins but it is showing me this error. Jenkins requires Java versions [8, 11] but you are running with Java 16 from C:\Program Files\Java\jdk-16.0.1 Please help!

1/3 OSD down in Ceph Cluster after 95% of the storage consume

I'm new to Ceph technology so I may not know obvious stuff. I started deploying ceph cluster using cephadm and I did. In my first attempt I gave each node 3 GB RAM (After some time I figured out...

Jenkins Ambiguous Permission

After updating Jenkins, it is sending a warning for ambiguous permission for project base permission. I can migrate the entry to user or group manually, was wondering if there's an automate or...

Cypress TypeError: Cannot read properties of undefined (reading 'uid')

I have a Cypress project with TypeScript support using the Cucumber Preprocessor and all of a sudden it started to throw the below exception: TypeError: Cannot read properties of undefined...