Questions tagged [hudson]
Hudson is an extensible continuous integration server written in Java and capable of running on Linux, OS X and Windows.
2,655
questions
0
votes
0
answers
47
views
Use OKHTTP in Jenkins plugin results in marshaling blacklist error
I am attempting to use the okHTTP library within my Jenkins plugin to make some external HTTP requests to an API.
For example I have something like:
JSONObject post(String url, String json, String ...
0
votes
1
answer
61
views
How to get only the Full name of previous Jenkins build
I would like to send the full name of the previous build that was received by using the following:
Run previousBuild = steps.currentBuild.rawBuild.getPreviousBuildInProgress()
in order to send to ...
1
vote
0
answers
60
views
Jenkins local EnvVars with hudson function
I try tofigure out how environment variable in jenkins are working and I get confused. Maybe someone can help to find my missunderstanding:
Pipleline:
import hudson.EnvVars;
import hudson.slaves....
0
votes
0
answers
46
views
Can we add windows 2019 as agent node in Jenkins 1.596.2. Is it compatible?
Can we add windows 2019 as agent node in Jenkins 1.596.2. Is it compatible? we are unable to location any official documentation. Please suggest?
0
votes
0
answers
27
views
SOAP Web Service with Jenkins
I am facing the error "Copy of war file to tomcat webapps home is missing" for below configuration. Can anyone please help.
<?xml version='1.1' encoding='UTF-8'?>
<project>
<...
1
vote
0
answers
523
views
Change/sort or prioritize the build queue in Declarative Jenkins Pipeline
What I want:
I want to change/sort the build queue in my Jenkins file (declarative Pipeline). Actually I want to make priority in my builds.
I am familiar with the following plugins:
PrioritySorter
...
2
votes
0
answers
430
views
Jenkins can't save new project or can't update configuration of existing ones
I'm using Jenkins 2.286 version on Windows 10.
I need to use the bitbucket hooks to trigger build when any pr merge made on the repository.
I've installed necessary plugins to communicate with ...
0
votes
2
answers
34
views
A basic question about continuous integration
This is not a programming question, but I don't know any more active forum and besides programmers are the best people to be able to answer my question.
I am trying to understand the rationale behind ...
1
vote
0
answers
62
views
Forked Java VM Exited Abnormally for random Testcase
I have a set of test suites say, X, Y, Z. When I run test suite X on my development machine it runs absolutely fine. But when I run the test suites through Hudson job on some remote machine that runs ...
0
votes
0
answers
41
views
Validation of parameters in Jenkins plugin
I am developing a plugin that accepts some values from the user. I would like to validate the values user is providing when user is saving those values(not when the plugin is executing). I have ...
0
votes
0
answers
465
views
Unable to install any plugins on jenkins on Mac OS X- (SHA-256 match error)
Am getting the following error when I try to download any plugin. This is a new development and didn't seem to happen earlier. I installed Jenkins using brew. I tried multiple reinstalls but nothing ...
1
vote
1
answer
932
views
Jenkins - Problem: hudson.model.Queue$MaintainTask failed
I have a problem : (pending—Waiting for next available executor)
Console log:
Timer task hudson.model.Queue$MaintainTask@fb3e676 failed
java.lang.ClassCastException: class java.lang.Integer cannot be ...
0
votes
1
answer
35
views
Create new variable on jenkins slave
I using jenkins 2.252 and jenskins slave on Windows host.
I want to create a new environment variable on slave, using existing variable WORKSPACE.
But all my attempts are in vain. i have tried:
${...
0
votes
0
answers
63
views
Trying to run a backup on another Jenkins server
I recently had some issues regarding version upgrade for my Jenkins server. In order to update the version of the jenkins server, the first step I did was to create a backup:
sudo tar -zcvf /tmp/...
0
votes
1
answer
216
views
How to display the Environment variables of a Slave node in Jenkins on Slack?
I have turned on Slack notifications in the Configure part of the project(which is linked to the master node) in Jenkins. After a build gets completed in Jenkins, I observe 2 nodes, the master node ...
0
votes
0
answers
21
views
How do i do configuratioin for different jobs has to run on different VMs or slave parallely
suppose that both the project are freestyle or one is freestyle and other is pipeline project
how do then we will configure such that we will able to run both the jobs or project simultanously or ...
0
votes
1
answer
665
views
ERR_CONNECTION_RESET error when trying to update the configuration of some old Jenkins jobs
Some of the older Jenkins jobs on a build server cannot be updated via the web GUI. I can rollback to older configs using things like the job config history plugin, but normal updates cause it to say ...
0
votes
1
answer
72
views
How can I make Jenkins not ask for re-login when there is a change from HTTPS to HTTP?
My Jenkins instance is on HTTPS.
One of the plugins creates a link which is on HTTP.
So, whenever I click that link (frequently accessed link), Jenkins asks me to re-login which is counter-...
1
vote
1
answer
961
views
Hudson doesn't keep users signed in. How to fix this?
Our team has a hudson instance. Multiple users use it. However, even though a user checks the 'Keep me signed in' checkbox on the sign-in ("Welcome to Jenkins") page, it still asks at every new launch ...
0
votes
0
answers
46
views
How to minimize the complexity of this code ,by avoiding it to traverse all the jenkins job(lets say 5000 jobs?)
I'm changing my jenkins job's SCM url from, lets say gitlab to github by using Groovy script. Is there any way to minimize the complexity of this code ?
I have used Jenkins.instance.items.each {} ...
0
votes
1
answer
95
views
Is there a way, in a list of jobs, to change a job's parameter to required?
I am using the script console of hudson and jenkins.
And I need make a parameter called "NAME" become required at the jobs where that parameter already exists. But I do not know any method that can ...
1
vote
1
answer
172
views
Jenkins workspace management
Jenkins uses "@" sign when creating new jenkins-pipeline workspace folders. The reason why these "@" are used is unclear for me, but I also don't need to understand how Jenkins works internally (...
5
votes
1
answer
754
views
Jenkins stapler requests fail with no valid crumb
I'm working on a Jenkins plugin and I'm now stuck at a point where I'm trying to get the return value of a method using a JavaScript proxy as described here.
I simply want to call this kotlin method:
...
1
vote
0
answers
25
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
1
answer
96
views
Jenkins pipeline and Hudson
I'm using Jenkins and in particular pipelines. What's the difference between pipelines and Hudson jobs with multiple build steps?
1
vote
0
answers
28
views
"Unable to find local grunt" after every hudson build
Hudson unable to locate local grunt after every build.
The only workaround solution i found is installing local grunt, local grunt plugins as part of every hudson build.
workaround solution: cd src/...
0
votes
1
answer
1k
views
Git authentication failing on jenkins with hudson after upgrading to Mojave
Our CI (Jenkins) was previously working on High Sierra using the standard master-slave configuration where the master provides the slave with the ssh credentials at build time. After upgrading to ...
0
votes
1
answer
791
views
jenkins error after update java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/users/admin
Hi I've made an jenkins update on my debian mashine.
Now I got this error after the update:
java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/users/admin
at sun.nio.fs.UnixCopyFile....
0
votes
0
answers
290
views
Why are psql commands in my script suddenly being killed by jenkins / hudson?
I have an existing jenkins job that kicks off a shell script to copy my prod environment into qa.
We added a lot of data to prod (gzip dump went from 2gig to 15gig) and all of the sudden my jenkins ...
0
votes
1
answer
88
views
Installing ant-1.10 x fails on one of my two Windows slaves
I'm working in a development environment that uses Jenkins 1.620 for running build & test jobs.
We're using Ant plugin 1.5 & Mercurial plugin 1.54 for integrating with respectively Ant & ...
2
votes
1
answer
2k
views
How to capture jenkins build cause? triggered by GitLab
In Jenkins file(groovy syntax), manual build action(if any) cause is grabbed using hudson.model.Cause$UserIdCause in currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause')
hudson.triggers....
0
votes
1
answer
833
views
How to enable authentication while calling Hudson/Jenkins job remotely
How to enable authentication while calling the Hudson/Jenkins job remotely?
We are currently using Hudson v3.0.1-b2 version.
We call Hudson job remotely to start builds, using Hudson rest api's.
We ...
4
votes
5
answers
13k
views
Where is JENKINS_HOME in windows?
I'm using jenkins.war file. I'm trying to test an groovy email template. This gives me below error
Groovy Template file [groovy1-html.template] was not found in
$JENKINS_HOME/email-templates.
...
0
votes
1
answer
2k
views
Jenkins delete job if it fails
As part of post build action in jenkins, I want to delete a job if it has failed with a particular exit code.
Logic here is:
My current job(perl script) queries MySQL Db to see if it needs to
...
0
votes
1
answer
30
views
How to prioritize the JOB NOTIFICATION plugin to run first in post build actions
I have a setup in my job config. I just want to execute some downstream jobs after job notification plugin invoked from POST Build actions. But downstream jobs always trigger first and followed by job ...
1
vote
0
answers
448
views
Jenkins can not load after upgrade to version 2.150
I use apt-get upgrade and it upgrade my Jenkins to 2.150 then I can not access to the Jenkins UI.
This is Jenkins Logs:
Jan 17, 2019 2:30:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed ...
1
vote
1
answer
562
views
Running (system/Jenkins) groovy script on slave while accessing build variable
I'm trying to run a groovy script which is updating the build.description during the execution while running a process on a slave node.
My problem is that a "system groovy script' executes only on ...
-1
votes
1
answer
21
views
Jenkins GUI discrepancy
There's an issue I'm facing with Jenkins where builds are not visible in the GUI:
But as I look at the job's directory on the server, I can see the builds directories in place:
Has anyone faced this ...
1
vote
1
answer
1k
views
Force Jenkins to run triggered Job on same Node
I have a some Jobs running on jenkins that has several nodes.
In the past I forced all my jobs to run all on the same node.
Now for purpose of load distribution I would like to reduce this constraints....
0
votes
2
answers
1k
views
How to run python script in linux Executable shell
I Have a python script ready and I need to run using Hudson CI. I can see configure job having the only environment supported is an executable shell. How can I run a python script in the executable ...
1
vote
1
answer
1k
views
How do I fix a "Failed to instantiate optional component" for hudson.plugins on Mac OSX 10.13.3 in Jenkins?
My Setup and Execution Info:
I installed Jenkins version 2.138.1 on Mac Powerbook OSX High Sierra 10.13.3.
java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)...
0
votes
1
answer
346
views
List all timely triggered jobs on Jenkins in groovy
I want to list all the jobs that are timely triggered in my jenkins.
I tried the below code for it.
#!/usr/local/bin/groovy
import hudson.model.*
import jenkins.model.*
void log(msg) {
manager....
11
votes
1
answer
544
views
Aggregate multiple upstream SCM changes in downstream job
On my current project, I have several dozen "sub-projects", each with trunk and branches (legacy setup, can't change it)
There are multiple commits on a branch, let's say 5, and then a branch is ...
0
votes
2
answers
1k
views
How to add string parameter to a freestyle jenkins job via groovy?
I am new to Groovy and trying to add a string parameter to a Jenkins job via Groovy (not using plugins)
I found similar set of examples for Workflow job and not for FreeStyleProject
https://www....
0
votes
0
answers
28
views
Git- Hudosn integration , How to specify authentication details for repository
I am trying to configure git with hudson for CI build.
I did not found the way to provide user and password for repository.
So i have provided User and password in URL itself.
But on doing that, ...
46
votes
12
answers
67k
views
Why is Jenkins suddenly unable to delete a workspace
We have a Jenkins server which has successfully built our code over 200 times - until a couple of days ago.
We are now getting an error to indicate that Jenkins was unable to delete the workspace (...
3
votes
1
answer
1k
views
Jenkins core API docs: How to navigate to find detailed properties and methods?
I find it hard to read the Jenkins javadoc. (I'll already here apologize for my java ignorance. I just have basic knowledge and are only able to write simple programs.)
When working in Jenkins and ...
1
vote
3
answers
1k
views
After upgrading to new Jenkins version, builds are failing
I just upgraded the jenkins from 2.63 to 2.117 (Which I'm regretting now)
Here is the error message I'm getting at the end of all the jobs.
Please help me to understand and resolve this.
FATAL:...
2
votes
0
answers
576
views
Jenkins Thread dead Exception
While executing a job in jenkins, sometimes this Exception occurs. The build will not stop, the next build will not start.
I start jenkins with java -jar jenkins.war --httpPort=8080 on Windows 64.
[...
1
vote
1
answer
65
views
login issue with hudson server after moving to new hardware
I am using hudson 3.3.3 and have just moved my hudson server to a new server and after movement. But i am not able to login to new hudson server. When i give my login credentials, hudson logs shows me ...