Questions tagged [jenkins]
Jenkins is an open source continuous integration tool written in Java, that has packages for Linux, Mac OS X, Windows, FreeBSD and OpenBSD. The project was forked from Hudson.
50,052
questions
0
votes
0
answers
11
views
java.nio.file.AccessDeniedException. Maven selenium
I am getting this error in jenkins pipeline when I run the stage which is running in ubuntu 20.04
ERROR: java.nio.file.AccessDeniedException: /home/username/test@tmp
My pipeline code is:
stage('Test')...
0
votes
0
answers
9
views
How to troubleshoot 'Target named Validate not found in the project' error in Jenkins when using mono to build a .NET project?
Started by user
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Test
The recommended git tool is: git
using credential gitea
git rev-parse --resolve-git-dir /var/lib/jenkins/...
1
vote
0
answers
17
views
Jenkins unable to run mvn test command in pipeline stage
I am using the Jenkins pipeline to test Maven cases. I have installed maven selenium and Chrome on the Ubuntu 20.04 machine.
My Jenkins stage basically runs sh 'mvn test' where the pom file is located
...
0
votes
0
answers
18
views
Jenkins Agent-container unable to run Docker commands on host due to 'permission denied' error
I'm trying to set up Jenkins master in a docker container on one host and a Jenkins Agent on another host also in docker. I cannot get the agent to run docker commands on its host. I keep getting ...
0
votes
0
answers
9
views
Robotframework Not able to change directory in Jenkins scripted pipeline
I am trying to run the robot framework using the Jenkins scripted pipeline.
my robotframework tests are located in the directory, I am unable to change the directory,
i don't want to change the root ...
0
votes
0
answers
4
views
SonarQube Jenkins plugin - Behind Reverse Proxy - sonarqube-webhook
I have a Jenkins server behind a Nginx reverse proxy and I'm trying to use the sonarqube-webhook plugin. When I try to access by ip everything works, but when I try by reverse proxy not.
nginx.conf
...
0
votes
0
answers
21
views
Docker build failing during COPY command during Gradle build
I'm attempting copy a private SSH key (file) onto my Jenkins image during a Gradle build. My simple COPY in the Dockerfile is failing with the following error:
#8 [3/5] COPY id_rsa /root/.ssh/id_rsa #...
0
votes
0
answers
16
views
In the Jenkins I am trying to compile and run my Java program
In the Jenkins 'Add build step' -> 'Execute Windows batch command' I am trying to compile and run my Java program.
cd D:\eclipse-workspace-ghj2\ExecJava_CustomDirectory_1\src
javac pkg/Manager_1....
0
votes
0
answers
3
views
Error running Ant build task on remote Jenkins node
I have Jenkins version 2.406 setup with a local controller node (using Java 11) and a remote agent setup to build apps.
I getting an error The filename, directory name, or volume label syntax is ...
-1
votes
0
answers
5
views
I have a error while trying to launch a jenkins slave
I'm trying to launch a Jenkins Slave but i get this error:
ERROR: Server rejected the 1 private key(s) for jenkins
I have tried everything, serching here, in stackoverflow, and in a lot of other sites....
0
votes
0
answers
8
views
Is there a way to obtain and upload dsym file to Firebase Crashlytics using Jenkins automation? [closed]
I want to automate the process of obtaining and uploading dsym file to firebase crashlytics using jenkins
I am trying to find method to obtaining and uploading dsym file to firebase crashlytics using ...
0
votes
0
answers
7
views
How to Disable CSRF Protection in Jenkins?
I am Trying to setup a Jenkins pipeline which is supposed to trigger whenever there is a new code push in my bitbucket repository. I tried creating a bitbucket webhook URL http://<jenkins_URL>/...
0
votes
0
answers
12
views
How can I set stage-specific environment variables in my Jenkins pipeline?
I want to use enviornment variables per stage (dev, acc, prod). Now I have added this list above my pipeline:
variables: [
a : [
dev: b
acc: c
prod: d
]
]
and in my pipeline I ...
0
votes
0
answers
10
views
Need options to fix storage Issues on AWS EC2 instance with Darwin OS used by Jenkins Pipeline for ios Builds
I am trying to find ways to fix the issues with my EC2 instance having Darwin OS being used for the iOS builds by the Jenkins Pipeline.
We regularly run into storage issues due to the jenkins making ...
0
votes
0
answers
12
views
Jenkins pipeline: Why do I get an 'Invalid parameter' error when trying to zip build files?
Jenkins zip syntax wrong?
Tried the following pipeline syntax, I want to zip the build files into a .zip and copy artifact
pipeline {
agent any
environment{
PACKAGE_VERSION="1.0.0.${...
-1
votes
0
answers
10
views
Start a job after a job execution and a defined time schedule on Jenkins pipeline
I have a job in the middle of a pipeline that I want to execute only after the previous job complete AND a specific time (i.e 10pm). Is it possible?
Thank you!
0
votes
0
answers
22
views
How to set up proxying via nginx in docker-compose?
My default.conf:
upstream jenkins-stream {
server jenkins:8080;
}
upstream backend-stream {
server backend:4000;
}
server {
listen 80;
listen [::]:80;
location /jenkins {
...
0
votes
0
answers
19
views
Creating SSH Credentials for Agent in Jenkins Credentials Plugin Results in Error and Stacktrace
I just installed Jenkins LTS using Docker and wanted to add an agent with an SSH key. When I try add an SSH credential, I get "A problem occurred while processing the request." and this ...
0
votes
0
answers
10
views
Exportreport plugin getting issue in ZAP2.12.x version in jenkins
I'm using exportreport plugins to export my report. Until the ZAP 2.9 version, It's working fine. Today I'm trying to update the ZAP version 2.12 and I'm getting the error.
Also, the plugin is not ...
0
votes
0
answers
10
views
Jenkins rest api to fetch list of nodes, plugins and version?
I'm trying to build out some documentation on our Jenkins infrastructure in confluence and I'd like to be able to pull it in via REST api.
First of all, I'd like to be able to fetch in a list of ...
0
votes
0
answers
9
views
Mercurial ( Tortoise hg ) clone creates subdirectory on clone command from within Jenkins
I updated a pretty old Jenkins environment including the Jenkins version and plugins due to security issues. ( windows server 12) We use mercurial for version control and Tortoise HG to use it.
Before ...
1
vote
0
answers
25
views
Groovy nested map join
def bins = ['abc','def','ghf']
bins.each{bin ->
def binsToAdd = [
"$bin": "get${bin}ToAdd(getSwModule(), path)
]
binPath = binsToAdd.findAll{it.key=="$bin&...
0
votes
0
answers
27
views
Jenkins is failing to find Chrome browser for automated tests - what can I do?
I'm trying to start to run in Jenkins my tests
java + selenium+ TestNG
for exemple Im try to get title on google.com
In my IDE all work correct, my code in git, jenkins starting, compile project
To ...
-2
votes
0
answers
23
views
How can I resolve the 'module 'main' has no attribute 'addition' error when running a Python test on Jenkins?
When I do a build from my git project on jenkins I get this error
ERROR: test_addition (__main__.TestMain.test_addition)
----------------------------------------------------------------------
...
0
votes
0
answers
15
views
Jenkins pipeline throwing 'go: command not found' error while running shell script. Any solutions?
I am trying to create pipeline using blue ocean(jenkins), but i am getting this error:
Getting this error while creating the pipeline
, I have performed all the steps(linking github, creating stage ...
1
vote
1
answer
30
views
Dynamic generation of parallel stages in jenkins
I am trying to generate dynamic parallel stages in jenkins. I have reach a point in which it work but they are not dynamic:
pipeline{
agent {
label "node-18"
}
parameters{
...
...
0
votes
0
answers
15
views
Not able to run tests in Jenkins: Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
I am having some trouble executing my Maven project in Jenkins. It seems that no test cases are being found. The thing is that I have specified the folder in my pom. This is my pom.xml:
<...
0
votes
1
answer
15
views
How to configure Allure report generation for pending test cases in a Cypress/Cucumber/Typescript project with Jenkins?
I am using Cypress, Cucumber with Typescript project. So far Allure report is generate sucessfuly when we have pass/failed test cases only. But report not generated(Show NaN, allure-results folder ...
0
votes
1
answer
20
views
Getting error 401 unauthorized while deploying to Nexus from Jenkins. How to solve it?
I am gettings build failure in jenkins while deploying to nexus?????
also settings.xml file, don't know how error 401 coming
How to solve error 401 unauthorized? what's wrong with my nexus server? how ...
0
votes
0
answers
14
views
Delete duplicate files from a folder inside zip file comparing it with a jar inside the same zip
We have a jenkins build where we noticed a few hundred class files are being packaged at two different locations. We would like to remove it from one of the location to avoid duplication.
Below is the ...
0
votes
1
answer
17
views
Changed BE API url to hostname. <not working>
In my project, FE was using BE API Url like - http://171.28.106.18:32514/.
Now this has been changed to hostname from devops team which is - http://project-backend-qa:8080
Now I am not able to hit any ...
0
votes
0
answers
7
views
Jenkins service running and access jenkins through browser
I have installed jenkins on centos. Tried to install Jenkins , also installed Java - openjdk version "11.0.19" 2023-04-18 LTS. but i am unable to restart jenkins service and also jenkins ...
0
votes
1
answer
10
views
Why is Teraterm not creating a logfile when launched via Jenkins batch-file in Windows?
I'm currently facing an issue on jenkins.
In the Jenkins job, I launch a windows batch file which launch some tests.
For these tests, I need to call Teraterm on the background which is basically a ...
0
votes
0
answers
25
views
Is there a way to successfully publish Databricks code coverage reports in Jenkins workspace using pipeline despite reports being blank?
import coverage
import os
cov = coverage.Coverage(source =['pathname'])
cov.start()
Loader = unittest.Testloader()
suite = loader.discover('pathname')
runner = unittest.TextTestRunner()
cov.report()
...
0
votes
0
answers
32
views
How to wrap shell commands via ssh?
Jenkins v2.375.1
I usually use the SSH Agent Plugin to wrap my Git commands, like this
sshagent(credentialsId: ["my-ssh-credentials"]) {
sh """
git tag some_tag
git ...
0
votes
0
answers
13
views
How to send email on every failure except one, in jenkins job configured using yaml
publishers:
- test-results
- email-ext:
recipients: abc@gmail.com
script: |
def errorToSkip = "Error cloning remote repo"
if (currentBuild....
0
votes
0
answers
16
views
How to Include Test Results from TestNG when sending a Microsoft Teams MessageCard POST request
I have a requirement to update a Microsoft teams channel with Test Results (Success, Failure, Skipped) after my test suite has completed, which consists of a Java/Maven/TestNG stack and uses extent ...
0
votes
1
answer
13
views
How to run a Jenkins Pipeline when two triggers are successful
Here is my Jenkins Pipeline
pipeline {
agent any
triggers {
upstream 'Trigger1, Trigger2'
}
stages {
stage('Hello') {
steps {
echo '...
0
votes
0
answers
20
views
Jenkins Pipeline Ansible is stuck on SSH connection
I have a job in my Jenkins pipeline which deploys the application on the infrastructure created by terraform. Terraform creates infrastructure and appends IP addresses inside aws_hosts file.
I am ...
0
votes
0
answers
14
views
How to send Jenkins console logs into Elastic?
I'm trying to build a post-build in Jenkins pipelines so that every time a failure happens I want to send the console log error into Elastic so I can track how often an error happens or similar things....
0
votes
1
answer
21
views
Getting variables from Jenkins runtime
I have several choices in my jenkins pipeline script:
`booleanParam[ name: 'VAR1', defaultValue: true, description: '']
booleanParam[ name: 'VAR2', defaultValue: true, description: '']
booleanParam[ ...
0
votes
0
answers
19
views
allure-results does not exist Jenkins python pycharm
i am unable to resolve the allure-report generation in Jenkins. I am able to see reports locally on the machine but not on Jenkins.
When running locally generates the correct allure-report
C:\Users\...
0
votes
0
answers
14
views
Rest-assured test cases on Jenkins as part of github PR acceptance
I have a springboot project and I have written rest-assured test cases to test my APIs. I want those to run as part of my PR acceptance from GitHub. But my issue is I am not able to figure out how can ...
0
votes
0
answers
15
views
Is there any way to add the GIT JSON packet into HTTP POST request in Jenkins
How to get the JSON packet from Git and add it to the Jenkins HTTP POST request plugin
I'm trying to do the http POST call from Jenkins, but the request packet for the POST method is something I'm ...
0
votes
1
answer
30
views
Jenkins github webhooks doesn't trigger my pipeline
I have a problem with my job starting automatically when a webhook from github arrives at the jenkins server.
I have a private organization account on github. A webhook like http://MY_JENKINS_SERVER/...
0
votes
0
answers
16
views
How to trowbleshoot an issue with Jenkins master, which cannot restart?
This is what can be seen in the jenkins.wrapper.log, when I restart form url/restart:
2023-05-23 08:21:04,574 DEBUG - Starting WinSW in the CLI mode
2023-05-23 08:21:05,293 INFO - Restarting the ...
0
votes
1
answer
19
views
i want to trigger my jenkins job when a Merge Request if merged to a specific branch is a particular folder in the local machine?
In Jenkins how can I configure a Jenkins job which is triggered when I have an mr which is merged on my GitLab account, is pulled to my master branch locally, or in that specific folder when I merge a ...
0
votes
0
answers
29
views
How can I pass the incremented version number from a Python script to Jenkinsfile description field?
Jenkinsfile calls a python script that incremented the version number. I was wondering if there was a way to write the incremented version number in the description
"currentBuild.description"...
0
votes
1
answer
37
views
Why am I getting 'permission denied' error in Jenkins but not when bash-ing into DIND image?
Jenkins and docker
Hello, I have installed jenkins on my main computer using docker desktop with the recommended current jenkins image. On that same windows computer I created an ubuntu VM with vmware....
0
votes
0
answers
25
views
Unable to establish a connection to the Black Duck server and execute the scan on Jenkins
I would like to set up a Black Duck security scan for our code through Jenkins. However, I'm facing an issue because the Black Duck server and Jenkins are in different Google Cloud Platform (GCP) ...