Category "jenkins"

How to get python3 on jenkins?

I am new to Jenkins. I installed python plugin which is available from Jenkins UI. But seems like it install python 2. I want to have python 3 on Jenkins. I hav

Jenkins unable to find npm

On this linux server, I have a user named "myuser". For this user, when echoing the path, I get this: /home/myuser/bin:/home/myuser/.local/bin:/home/myuser/.nv

How to run `dotnet lambda deploy-serverless` command without parameters?

Good evening. The question is about dotnet lambda deploy-serverless command. This command is used to deploy .Net apps to AWS Lambda service using AWS CloudForma

Trigger parameterised maven release with Curl

Using following command to perform maven release: curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -u user:jenkinscrumb --data-urlencode json=

Jenkins deployment to Tomcat failed

I'm currently learning and implementing Jenkin's Pipeline for automated integration for java web application. My plan is that once developers successfully comm

Jenkins pipeline library build using Java instead of Groovy

I would like to write my company Jenkins Pipeline Library using Java not Groovy, as groovy is slower than Java. I tried to find examples of such Java Jenkins li

Provide external yaml file to JCasC configScripts

I am configuring my Jenkins instance using jenkins-helm chart (https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/VALUES_SUMMARY.md#jenkins-confi

Git | Jenkins | Permission denied (publickey)

We have a common LDAP account/user. We plan to use this user to configure Jenkins for our team. I logged in to the machine/VM using my login and installed Jenk

Preventing default checkout in shared Jenkinsfile

I have a number of multi-branch pipeline jobs in Jenkins on Windows, each of which uses a standard procedural Jenkinsfile which contains various methods for run

Docker, how to deal with ssh keys, known_hosts and authorized_keys

In docker, how to scope with the requirement of configuring known_hosts, authorized_keys and ssh connectivity in general, when container have to talk with exter

permission denied while building project in jenkins . /tmp/jenkins7547483698503669612.sh: line 2: /root/hello.sh: Permission denied

I am facing an issue when I am trying to run the Jenkins job. I have tried to change the permission of the script, but it seems the error persisted. chmod -R 77

How to use source command within Jenkins pipeline script

I recently rewrite bash execution command into Jenkins pipeline. The old code is like ... source environment.sh //Build //Test ... Now I use pipeline script

Abort Jenkins pipeline (workflow) build after timeout

Whenever a build gets stuck of fails somewhere the timeout kicks in but the build is not aborted and it is stuck running forever until you cancel the build, go

How to retrieve current workspace using Jenkins Pipeline Groovy script?

I am trying to get the current workspace of my Jenkins build using a Groovy pipeline script: node('master') { // PULL IN ENVIRONMENT VARIABLES // Jenki

Karma Chrome Headless not working on Jenkins

When I run the below setup with Docker locally on my mac everything works fine. But same setup does not work on Jenkins running on Ubuntu 16.04 ChromiumHeadle

Change email address in Git

I have a project hosted in Git stash (now rebranded as Bitbucket Server). It is built using jenkins. Now I made a typo while installing my Git locally. Like @ab

How to use a FileParameterValue in a jenkins 2 pipeline

How can a file from the current project workspace be passed as a parameter to another project. e.g. something like: build job: 'otherproject', parameters: [[$

On Jenkins, is it possible to GET URL then push newer builds to devices under test per device?

My friends and I have 4 devices under test Example: RPI1-WiFi RPI2-Bluetooth Current have these set up running tests but would like to automatically push newer

How do I get initial admin password for jenkins on Mac?

I installed jenkins by downloading jenkins-2.2.pkg. After the installation is complete, Chrome auto-connected to http://localhost:8080/login?from=%2F and I see

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test)

I am facing this issue with maven-surefire-plugin 3.0.0-M4 and Maven versions 3.6.3, 3.6.0 and 3.3.9 with jdk1.8.0_222 (Ubuntu 18.0.4). My pom.xml is as follows