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.

0
votes
0answers
4 views

How to configure Jenkins to use MFA/2FA

We would like users to use their username/password along with another form of Multifactor Authentication, such as Google Auth (or Authy), to log into Jenkins. We did not find any plugins that support ...
0
votes
0answers
7 views

Encountering `Cannot find module webpack/lib/removeAndDo` when deploying Angular project onto S3 from Jenkins

I am trying to deploy my Angular project on AWS as part of one my stages in my Jenkins job. Long story short, I run some tests and then deploy the project using npm run build:serverless:deploy. When I ...
0
votes
0answers
11 views

Is there any option to schedule Jenkins job at date from parameter?

I need to enter specific date as parameter and run the job at that day With "Date Parameter Plugin", i'm able to enter date as parameter, maybe i need another plugin? * * day_as_parameter ...
1
vote
0answers
19 views

Groovy configslurper not accepting strings in input

I want to preface by saying this all worked until SCM redid the jenkins instance, I'm unsure of what they changed but it broke this. I have a config: program { AS{ server=["serv1","serv2","serv3"]...
0
votes
0answers
5 views

When doing multiple jobs in a pipeline Jenkinsfile, how do I capture the logs for the given build

As the title states, I want to capture the logs for all the stages in my build, which looks like this: pipeline { agent any stages { stage('Build First Repo') { steps { ...
0
votes
0answers
12 views

How to run specific test cases with Jenkins?

I created a Jenkins job to run some junit test in a maven project. Following is the configuration: In the properties I set test=TS_1609 to run one test and I want to know how can I specify several ...
0
votes
0answers
4 views

How to make environment variable set by job dsl avaiable in downstream jobs?

The job seeder creates a pipeline job and sets environment variable using job dsl as shown below, this pipeline job triggers another job(say job2) which in turn triggers another job(say job3). I want ...
0
votes
0answers
7 views

jenkins: configure github project in jenkins pipeline programmatically via groovy script

Hey I'd like to programatically configure a Jenkins-Pipeline with a Pipeline-Job which you can find at: https://github.com/divramod/pipeline-testing/blob/master/cicd/jobs/master.jenkins This runs ...
0
votes
1answer
12 views

How to run nodejs server as a background task in jenkins and restart the server on autobuild?

I'm currently working on nodejs application. I need to make frequent changes to it. I have a job set up in jenkins which automatically builds if changes are made. The job runs django and node api ...
0
votes
0answers
12 views

How to change directory inside bash script from Jenkinsfile?

In my Jenkinsfile I have cloned one git repo using Git SCM and for relativeTargetDir I added for example "myGit". So it is saved in directory "myGit". After that I need to run my bash script, and ...
1
vote
0answers
10 views

From HUdson to Jenkins

I need to pass from Hudson 3.3.3 to Jenkins 2.176.1. I have some jobs on Hudson that need to port in Jenkins. At the moment I tried "Thin Backup" plugin version 1.7.2, installed both in Hudson and ...
0
votes
0answers
10 views

Unable to load Maven meta-data from :Received status code 403 from server: Forbidden

All of sudden with out any changes in my project I was getting below error. Error : Could not resolve com.google.android.gms:play-services-iid:[15.0.1]. 14:40:53 | Required by: 14:40:53 | ...
0
votes
0answers
10 views

While running my testcase in Jenkins getting below error “java.lang.AssertionError: Unsupported type parameter”

I am new to jenkins. I have installed jenkins and plugins. And port 8080 I am using it. While running my test case in Jenkins I am getting below error "java.lang.AssertionError: Unsupported type ...
0
votes
0answers
7 views

Restart specific Jenkins pipeline stage from API call

Is there any way to restart Jenkins pipeline stage from API call. my Jenkins pipeline has several stages. I can run Jenkins job from the API, but I want to know if there is any way that I can restart ...
-1
votes
0answers
18 views

Window file upload with Selenium Webdriver + AutoIT + Jenkins Windows service is not working

Environment: Windows 10 Selenium 3.14 Java AutoIT Jenkins windows service We have a code to upload a file from local drive into the web application and it is working fine when running through ...
0
votes
0answers
7 views

python: can't open file 'MainRunner.py': [Errno 2] No such file or directory in jenkins

I am trying to run automated tests in a windows batch file within a jenkins build. It is set up to periodically pull source from gitlab, and now I'm trying to configure it to run my automated test ...
0
votes
1answer
13 views

Groovy: Last 5 elements of array if they exist

As you can see from the code I want to get the last 5 builds from the array. I ask myself what will happen in case there are are only 4 or 0 builds in the array. I probably will get a null reference ...
0
votes
2answers
25 views

Unable to push docker image on registry using Jenkinsfile

I am trying to push my image through Jenkinsfile on repository but when I do that I am facing below error. Error response from daemon: Get https://mydockerregistryurl/v1/users/: x509: certificate ...
0
votes
0answers
14 views

Missing parameter variables after upgrading “Stash Pullrequest Builder Plugin” to version 1.9 of higher

Last time I've upgraded Stash Pullrequest Builder Plugin to version 1.9 and after that any triggered build has empty parameter list (parameter variables like ${pullRequestId} specified in ...
0
votes
2answers
21 views

have multiple tests with same name under different node

I have two different tests that share the same data: [TestCaseSource(nameof(ProvideTestCases))] public void SubtractSegmentsTests(IPolyline polyline, IPolyline toRemove, double tol, IGeometry ...
-1
votes
1answer
30 views

How to run pytest in jenkins

I am trying to run pytest in jenkins. When i try to install pytest in build option in jenkins it says pip command not found. Even tried setting a virtual env but no success. I AM RUNNING JENKINS IN ...
0
votes
0answers
14 views

How to provide keychainPwd in hudson.util.Secret format in Xcode Integration plugin while working with Blue Ocean?

We created Jenkins Pipeline as a Code using Blue Ocean and it was working fine until recently. Now when we try to pass parameters for keychainPwd for Xcode integration plugin in Blue Ocean, it gives ...
0
votes
1answer
16 views

Jenkins declarative pipeline: How to fingerprint a file without archiving it?

I have a Jenkins declarative pipeline job that has the end result of creating some very large output files ( > 2 GB in size ). I don't want to archive these files in Jenkins as artifacts. However, ...
0
votes
1answer
11 views

copying artifact to remote machine using jenkins-pipeline

I have running jenkins in windows machine, i have create build there and artifact is ready, But how can i transfer that artifact to remote machine. I have ssh key and user-id only.(need to be trafered ...
0
votes
0answers
15 views

How to spawn multiple EC2 instances on demand from jenkins server?

I want to spin up new EC2 instances from Jenkins server using only IAM role. I work in a firm and I cannot use Access key and Secret ID as it is linked with my own company ID and password. I'm ...
0
votes
0answers
24 views

How to publish a tag only if not blank

I'm experimenting with getting a Git project working in Jenkins. I found an interesting blog post here: Building a Continuous Delivery Pipeline with Git & Jenkins Ms. Padget is using a ...
-2
votes
0answers
15 views

How do you automatically add all node_modules when deploying Angular app to Jenkins?

I am new to Jenkins and am trying to deploy a project that I have. Specifically, I am trying to run ng test. However when I deploy it, it seems that the node_modules directory is completely missing. ...
0
votes
0answers
23 views

Jenkinsfile for Go tests which use MySQL

My jenkins config looks like this: pipeline { agent { dockerfile true } stages { stage('Pre Test'){ steps { sh 'go version' sh '...' ...
0
votes
0answers
9 views

Jenkins REST API to return TimerTrigger in json

I am trying to write a curl command to return the timertrigger schedule of a jenkins job I have tried using the existing APIs to find job information curl -s http://JenkinsServer/job/dailybuild/api/...
-1
votes
0answers
7 views

How to pass value from a groovy script in jenkins to the next build step (Python for example)

I'm trying to write some text to a file from a groovy script inside a Jenkins job with no luck so far. What i'm trying now is to pass this text to the next build step so I can write it from there, ...
0
votes
0answers
16 views

How can I set env variables for a dockerfile at runtime in Jenkinsfile?

I have a Jenkinsfile that builds a docker image and deploys that image to 4 environments. I would like environment variables in my docker image only for 2 of the 4 environments. How can I do this?
1
vote
1answer
16 views

Jenkins - Visual Studio Command line arguments

Planning to Build & Deploy SSIS Projects(ISPAC) or Database Solutions (DAPAC) from Jenkins using Visual Studio Command line arguments. Question: I know i can execute Windows batch commands but i ...
0
votes
1answer
16 views

How to use Selenium executable jars and integrate them with Jenkins

I'm trying to integrate Jenkins and Selenium but the problem is all I have are executable jars, testng.xml, and run.bat to run the test suit and I have to upload these files to SVN and then integrate ...
0
votes
1answer
18 views

How to use Boolean parameters as build parameters to copy artifacts?

I have a multi job project PJ1 with Boolean parameters A, B,C. Based on which parameter is chosen, I want the PJ1 to copy artifacts from another job like if A the copy from "TestA47", if B then copy ...
0
votes
0answers
9 views

Branches to Build/Branches Specified problem recognising multiple branches

Just working on setting up a new jenkins project and trying to get one project to build mulitple branches. I'm building a repo of a .net solution and using octopack for octopus deploy to create a ...
0
votes
0answers
15 views

How to fix 'set -o pipefail' command execution through jenkins groovy script

We have jenkins pipeline setup. We use command "set -o pipefail" with following curl and append the http status to a file using tee command and finally we check the status of HTTP response using grep ...
0
votes
1answer
18 views

Docker Container Jenkins Pipeline Script: Permission denied while executing the script

I am running jenkins inside a docker container. I have created a simple pipleline to checkout,build and run docker image, but I am getting the following error. Below is my pipleline script: node { ...
0
votes
0answers
9 views

SecureGroovyScript.script expect class java.lang.String but received SecureGroovyScript

I'm writing a jenkinsfile which allows the dynamic parameters, using the SecureGroovyScript and CascadeChoiceParameter. Here is my code properties([ parameters([ choice(choices: "\nDev" + ...
0
votes
1answer
19 views

How to get name of the job owner in jenkins pipeline?

When someone creates a Test job, we should send email only to him, not for all. How can I get a job owner name? We have teams and when we make a job, the results of it we send to them. But if the ...
0
votes
0answers
21 views

How do I copy built jar from Jenkins to remote server using Ansible scripts?

I have a Maven application which is in a GitHub repo. I have to setup a Maven project pipeline in Jenkins in such a way that after a successful build, the produced jar file would be automatically ...
0
votes
0answers
22 views

Jenkins pipeline script addition in Free Style Job Vs Pipeline Job

Currently I am trying to build CI/CD pipeline for my micro service deployment. I created declarative pipeline script including repository pull , build , test , kubernetes deployment etc in different ...
0
votes
0answers
10 views

Jenkins error: java.lang.InterruptedException: sleep interrupted [on hold]

Jenkins automatically aborts my job with an error, and I check the Jenkins log as following. Would you please give me a help for this? INFO: Docker Container Watchdog check has been completed Jun ...
1
vote
0answers
21 views

How to run a post build action when the build status changed from Stable to Unstable/Fail

We want to publish some information (time, build no, GIT Author etc.) to confluence when our Jenkins build status change from stable to unstable/failed but not in subsequent consecutive failures.We ...
-1
votes
0answers
10 views

How to install node-oracledb in jenkins?

I am trying to install https://www.npmjs.com/package/oracledb on Jenkins but not sure how to proceed, I have it working fine locally
0
votes
0answers
22 views

How to fail a Jenkins Job upon runtime failure of a docker process?

My jenkins job triggers a docker process to run. My docker process may exit depending upon any conditional logic and termination of CMD bash script. Once exited, I wish my Jenkins job to fail ...
0
votes
0answers
13 views

Issues running a Jenkins job with parameters via jquery/ajax - api

I have the below code, somehow I just cant seem to pass the parameters to Jenkins: var parameters = '{"parameter": [{"name":"id", "value": "2"}, {"name":"id2", "value": "testing"}]}'; $.ajax({ ...
0
votes
0answers
21 views

How can you pass input data from a web app form to jenkins pipeline?

I want to pass a username and password that a user enters into a web app to use as variables within the groovy script for a Jenkins pipeline. Currently the web app starts the pipeline build by using ...
0
votes
0answers
14 views

Why do failing tests cause entire Jenkins build to be marked as “UNSTABLE” by Allure plugin?

I have set up Jenkins test jobs that will run Cucumber tests and want my jobs to always be successful up until a certain threshold (which I am controlling). The Allure plugin is always marking my ...
-1
votes
0answers
7 views

How to integrate testing on vagrant VM's

I am working on a project that requires testing on different linux distributions; I initially used docker(which worked great with travis), to build containers with images of different linux ...
0
votes
0answers
10 views

how to make sonarqube analysis do not skip sub-modules

I integrate sonarqube analysis in Jenkins, and point it to the pom file of the parent project of a multiple projects. I expect it to scan all the sub-projects but all the sub-projects are skipped. ...