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
5 views

Jenkins Pipeline Docker — Container is Not Running

I have Jenkins running on an EC2 Instance. I have the EC2 Plugin Configured in a Peered VPC, and when a job is tagged 'support_ubuntu_docker' it will spin up an Jenkins Slave, with Docker pre-...
0
votes
0answers
5 views

Why does the Jenkins Git plugin ignore my BRANCH parameter?

I have a Jenkins job configuration set up involving Git Source Code Management. The job is parameterized using a Git parameter, as shown below: I use this parameter to allow us to start this job ...
0
votes
0answers
5 views

Run sudo within Jenkins dockerfile pipeline

I am setting up a Jenkins pipeline (declarative script) using a Docker container agent built from a Dockerfile. I want one of the build stages to fetch dependent packages (Debian packages, from ...
0
votes
0answers
5 views

Jenkins Scripted Pipeline - specifying the workspace directory before node allocates the workspace

I've got a multibranch pipeline, defined in a scripted pipeline (from a library) that is coordinating ~100 builds, each build across multiple slaves (different operating systems). One of the ...
1
vote
0answers
9 views

Remotely build jenkins job with file parameters using restassured

I am able to trigger the job but for some reason file is not getting uploaded to the jenkins workspace. If I try that manually from jenkins job runs fine. I have tried below- RestAssured.given() ....
0
votes
0answers
3 views

monitor the amount of requests openstack4j does

Jenkins's openstack-plugin uses openstack4j for talking to an openstack cloud. I'm looking for a way that we can we can monitor the amount of http(s) API calls openstack4j does, from client side ...
0
votes
1answer
10 views

Generic jenkins job for multiple projects

I have multiple independent projects ( Java - Maven ) in this SVN repo : |-- exemple.com/svn/java/apps/ | | |-- Application_1 | | |-- branches | | |-...
0
votes
0answers
10 views

UTF-8 char in path used by groovy in Jenkins

I need to copy a file, using a groovy script in Jenkins (pipeline). This file has the character ü in it, which results in the file not being found. I've tried renaming the file to a standard u, and it ...
0
votes
2answers
19 views

Cannot see stages times in Jenkins pipeline

As you can see from the image below, even if the build #5 terminates correctly, I cannot see the elapsed time for each stage. The only thing that I did in the pipeline was to remove old builds with ...
1
vote
2answers
37 views

how can i know on which git branch I am when I do git clone from dockerfile

My dockerfile: WORKDIR /var/jenkins_home/workspace/[email protected]/xxxxx RUN apt-get -y install git RUN git clone https://Team:[email protected]/MinoxTeam/xxxxx.git /xxxxx && \ cd /xxxxx ...
0
votes
1answer
20 views

How do I get the version number and build of the application from Jenkins?

I have an application on c # that is built on Jenkins. The build numbers go in order from 1 to 23 at the moment. On the About window, I need to display the version number of the application along ...
2
votes
0answers
23 views

Hiding passwords in Jenkins Pipeline log output without using WithCredentials

I have a parametrized Jenkins pipeline based on a Jenkinsfile. Some of the parameters contain sensitive passwords that I don't want to appear in the job's build logs. So my question is: can I somehow ...
0
votes
0answers
7 views

Jenkins hangs while installing

do someone knows this issue with Jenkins (Ver. 2.138.1): while building our project, it hangs forever during Installing phase: [Run JUnit Tests] [INFO] --- maven-install-plugin:2.4:install (default-...
0
votes
0answers
10 views

How to resolve 'unable to resolve class hudson.util.Secret' exeption in groovy script in ANT build.xml?

I am using Jenkins and ANT build to automate our build and release process. I am using 'hudson.util.Secret' API to encrypt and decrypt passwords in Jenkins. I have encrypted all passwords and kept in ...
1
vote
1answer
27 views

Docker step results to log file - Jenkins

The Dockerfile contains several steps to build and create a docker image. E.g. RUN dotnet restore, RUN dotnet build and RUN dotnet publish. Is it possible to export the results/logging of each step ...
0
votes
0answers
8 views

Jenkins Active Choice Reactive Parameter | Groovy script

I am using Active Choice Reactive Parameter for some predefined parameter with user based input parameter. I have created inputBox using groovy script, but not able to fetch data of inputBox in ...
0
votes
0answers
13 views

How to change the Build agent according to JOB_NAME

I am using Jenkins pipeline job for implementing the CI-CD Currently I am specifing the build agent at the global level. I want to change it accoring to the JOB_NAME e.g if the env.JOB_NAME=="jenkin-...
0
votes
0answers
7 views

Get value from webhook in groovy script jenkins

I am using the generic webhook trigger plugin to trigger jenkins jobs based on the webhook from bitbucket https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin I am able to extract ...
0
votes
0answers
15 views

Jenkins on solaris operating system

Need to install jenkins server on solaris box, this is the version details, can we get any jenkins package to install? Solaris details: Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
-2
votes
1answer
23 views

create new Docker image using the existing docker image

I have a docker image in docker registry. I need to run build(eg. running build on a master branch of the application) on this docker image and create new Docker image using the existing docker image. ...
0
votes
1answer
26 views

ClassLoader does not find resource files following build

I have been running into issues trying to direct the Java ClassLoader to retrieve JSON files from the test/resources directory following deployment. public class TestFileUtil { private static ...
0
votes
0answers
25 views

calling script within Jenkins pipeline with git | egrep and regedit

I have two questions 1. Try to parse for git commit messages, but the egrep execute as a separate command. The return result is always incorrect stage('test') { steps { ...
0
votes
0answers
17 views

Artifactory Plugin with Dockerized Declarative Pipeline

I am trying to get dockerized build with Jenkins declarative pipeline. I am using the Artifactory plugin for resolving the dependencies. The below Pipeline works for agent: any but gives an ...
1
vote
0answers
22 views

Jenkins and selenium

I have Jenkins service running in docker container in private docker network. I have selenium hub and chrome and Firefox also running in container under same network as jenkins..chrome and Firefox ...
0
votes
2answers
13 views

Issues while create a file in shell scripting in jenkins pipeline script

I am trying to create a multi line file in Jenkins pipeline script using the below commands. sh "echo \"line 1\" >> greetings.txt" sh "echo \"line 2\" >> greetings.txt" echo "...
0
votes
0answers
9 views

Finding a file not in a pull request in a running Jenkins job

I am processing files in and associated with but not necessarily contained in, a pull request, as part of a stage in a Jenkins pipeline. I have the need to find the latest version of a file, say a ....
0
votes
0answers
14 views

Couldn't find remote ref ${branch}

I am trying to deploy a .Net project through Jenkins. All the source code is in GIT repository. After configuration of Source Code Management in Jenkins, i am able to create the successful build by ...
0
votes
1answer
13 views

test and build in the single Jenkinsfile

I would like to have following job try { if (env.gitlabMergeRequestId) { // only run test } else{ // run tests // build } If this is merge request - I would like only unit ...
0
votes
1answer
18 views

maven effective pom shows plugin thats not defined

I have a problem with my effective pom file. I am running a multi-module project. I have a main pom and base project pom. My main pom does not contain a maven-release-plugin dependency, however the ...
-2
votes
0answers
13 views

How can I conect Jenkins with jasmine

Actually I am a QAS member team. I would like to ask, about how Can I integrate Jenkins with jasmine to run test unit... the language is Node.Js... I was serarching in the internet but i can´t find ...
0
votes
0answers
13 views

How to use Artifactory plugin in Jenkins to add recursive properties to existing artifact in Artifactory

I already know how to add properties to the folder recursively with Arty REST api curl -X PUT http://myserver:8081/artifactory/api/storage/myrepo/myfolder?properties=testing=something&recursive=1 ...
0
votes
1answer
8 views

Access an API through Google Actions/Dialogflow

I wanted to trigger a Jenkins job through the Jenkins API we can do that by hitting the URL similar to "JENKINS_URL/job/JOBNAME/build" I want to hit the API via Google action/Dialogflow. Is there ...
1
vote
1answer
12 views

Using Jenkins to automate TestStack White coded UI tests

I've created a bunch of coded UI tests for my application using TestStack White. My next goal is to make those test run automatically at 5 A.M. every morning using Jenkins. Main problem for me now is ...
0
votes
0answers
21 views

Failed to publish/generates TestNG Report in Jenkins

I have used Maven project with Selenium & TestNG to create automated scripts which I want to execute from Jenkins. In Jenkins I have added the TestNG plugin to publish the TestNG report. But it is ...
0
votes
1answer
13 views

How to change the Jenkins Home Directory from /var/lib to app and create a symlink for orginal location as job wont get affected

I need to change my Jenkins 2.89.3 version Home Directory from /Var/lib/jenkins to /app due to space constraints. I need to make sure , all jobs which are using the /var/lib/jenkins directory wont get ...
0
votes
0answers
12 views

Jenkins slave is going offline

I have Jenkins slaves connected with master and after some intervals my Jenkins slave is going to offline and whenever its going to offline I am manually running the Jnlp command(Run from slave ...
0
votes
1answer
8 views

In Jenkins Pipelines, how can the console output from multiple nodes be filtered

When running jobs in a Jenkins Pipeline in parallel (multi node setup) with the parallel keyword, the output of the individual nodes is interleaved. An example output is shown below. Is it possible to ...
2
votes
0answers
14 views

Add a file into an existing Openshift configMap

Is it possible to add a file into an existing Openshift configMap? I'm to build a Jenkins job that would automatically update a specific key within an Openshift configMap, as this was suggested by me,...
0
votes
0answers
9 views

Passing parameter from within node to outside for dynamic parallel to multi-nodes

I am creating a jenkins pipeline where I want to pass a variable which I have dynamically generated from node1 to the external. This variable contains a list of comma-separated JSON files name. I want ...
0
votes
0answers
6 views

Jenkins monitoring running jobs in Datadog

I wanted to ask you if there is any chance to get notifications if any job is running longer than an hour on Jenkins. I know that there is a metric called job.duration but it shows the duration just ...
2
votes
1answer
33 views

Jenkins Conditional Stage Changeset Always Skipped

I'm trying to add conditions to a Jenkins stage so it will only trigger when there's been a change to a .yaml file in the changeset The code I've ended up trying is: when { changeset '*.yaml' } ...
1
vote
1answer
25 views

Locking parallelised stages in Jenkins

We're trying to write a declarative Jenkinsfile build script to run several steps in parallel in each of several stages, however we need to prevent multiple builds from running at the same time ...
0
votes
0answers
19 views

“java.lang.Exception: None or multiple repos” with BitBucket Notifier in Jenkins multi-branch pipeline

I have a multi-branch declarative pipeline on Jenkins, which gets triggered by repo events from my Bitbucket cloud account and I'd like it to report the result back to Bitbucket. My Jenkinsfile ...
0
votes
0answers
8 views

Pipeline jenkins circular upstream triggers

I have some jenkins jobs which are triggered by a scmPoll or by an upstream trigger. The jobs have circular dependencies. For example take this scenario: JOB_1: have as upstream trigger JOB_3 JOB_2: ...
0
votes
0answers
12 views

Jenkins - Scripted Pipeline - How to execute pipeline steps that are dynamically created as a String

I wrote a Scripted Pipeline that uses Groovy to create all pipeline steps dynamically as a String. Dynamically, because the nodes to be used need to be chosen at execution time, which means that I ...
0
votes
0answers
13 views

How to set Jenkins heartbeat in docker

Some of my Jenkins jobs are failing with the following message in the log wrapper script does not seem to be touching the log file in <omitted> (JENKINS-48300: if on a laggy filesystem, ...
0
votes
0answers
19 views

Updating to buildToolsVersion 28.0.2 removes gradle tasks

My jenkins build server used to run these tasks clean lintStagingDebug checkStagingDebug testStagingDebug After I updated the buildToolsVersion to 28.0.2 the checkStagingDebug and testStagingDebug ...
0
votes
1answer
11 views

can't launch windows slave agent (Jenkins)

I set my master URL to : http://[master_ip]:8080 I configured the windows slave machine as follows: slave_config Now I'm trying to launch the slave using the agent.jar by running the command: java -...
0
votes
1answer
18 views

Jenkins SCM polling not polling the correct branch

I'm using Jenkins on a CI environment, with the plugin for SVN. The build polls SCM every minute for new changes, and triggers if there are any. The problem is that we need to change from one branch ...
0
votes
1answer
10 views

Jenkins wont run my NUnit test, but cmd will

I have been struggling with getting my Jenkins setup to run my NUnit tests. If I use cmd to run the tests, then everything is fine. In Jenkins I have an empty build with a build step configured to run ...