Questions tagged [hudson]

Hudson is an extensible continuous integration server written in Java and capable of running on Linux, OS X and Windows.

Filter by
Sorted by
Tagged with
1 vote
1 answer
30 views

I keep running into MissingPropertyException on my Jenkins job although the varibale is defined

ERROR: Build step failed with exception groovy.lang.MissingPropertyException: No such property: manager for class: Script1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(...
Adithi's user avatar
  • 11
1 vote
0 answers
49 views

Uploaded file in fileparameter not found after some time waiting in Jenkins queue

We use a free-style job in Jenkins with a file parameter to launch a job that reads that file to perform some actions. Sometimes we want to schedule this job (with the help of the Schedule Build ...
Ermiar's user avatar
  • 1,078
0 votes
0 answers
19 views

How to read out active monitors of my Jenkins?

My goal is to be able to make a daily report of how many active warning -and critical monitors there are. (The yellow and red warnings upper right corner) My idea is to accomplish this preferrably ...
Sempai's user avatar
  • 73
0 votes
1 answer
45 views

How to programmatically build a jobs in a view in hudson

I have a 500+ Jenkins jobs in a particular view. I need to trigger those jobs programmatically using the Jenkins script console. I tried with the below code but it didn't work. import hudson.model....
Dhakshna Moorthy's user avatar
0 votes
0 answers
298 views

unable to resolve class hudson.model.StringParameterValue

I am developing a groovy script in my pipeline A to get the latest revision of a svn repository ,save it into revision variable and append it to the version number tag in a POM file in Pipeline B. The ...
Ramin B's user avatar
  • 35
0 votes
0 answers
598 views

hudson.remoting.Channel$CallSiteStackTrace: Remote call to docker2

while running the jenkins job I got above error, I found jenkins agent is active and connected to master. we used linux vm as a jenkins-agent(docker2). Java version is 1.8.0_222, jenkins version is 2....
harish hari's user avatar
2 votes
1 answer
171 views

hudson.FilePath : How to list subDirectories as well whole using excludes glob filter

I am working on a Jenkins custom Plugin, where I need to list all valid FilePaths: sub-Directories and child files, excluding some temporary files like .git,.npm,.cache etc, the full list is included ...
kn_pavan's user avatar
  • 1,520
0 votes
0 answers
328 views

FATAL: Remote call on jenkins node server failed

We are using jenkins version is 2.121.3. For java JDK versions we are using different versions for master and slave machines. This issue will occurs only for security jobs. Which they are added ...
shanmukh's user avatar
1 vote
1 answer
43 views

Better parallelization of jenkins build nodes

I have a Jenkins jobs that runs as so (very simplified but the structure is there): #!/usr/bin/env groovy node('my_label'){ timestamps{ build() postBuild() } } def build(){ parallel{ ...
iwantmyhatback's user avatar
0 votes
0 answers
3k views

Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent

When trying to connect an agent node (Rhel) using the "java -jar agent.jar -jnlpUrl", the connection is not successful. Getting the error "Protocol JNLP4-connect encountered an ...
kr_devops's user avatar
  • 127
1 vote
1 answer
801 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 ...
ssb's user avatar
  • 39
1 vote
0 answers
396 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....
IFThenElse's user avatar
0 votes
0 answers
102 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?
Kishan's user avatar
  • 1
1 vote
0 answers
1k 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 ...
milanbalazs's user avatar
  • 4,851
2 votes
0 answers
790 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 ...
Soner Paycı's user avatar
0 votes
2 answers
47 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 ...
grit639's user avatar
  • 326
1 vote
0 answers
125 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 ...
Swapnil 's user avatar
0 votes
0 answers
97 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 ...
SMitra's user avatar
  • 23
0 votes
0 answers
579 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 ...
curious n3ejdfne's user avatar
1 vote
2 answers
3k 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 ...
Amelia Gherdan's user avatar
0 votes
1 answer
56 views

Create new variable on Jenkins agent

I using Jenkins 2.252 and Jenkins agent on Windows host. I want to create a new environment variable on the agent, using existing variable WORKSPACE. But all my attempts are in vain. I have tried: ${...
Roman R.'s user avatar
0 votes
0 answers
120 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/...
harry123's user avatar
  • 780
0 votes
1 answer
363 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 ...
Agent X's user avatar
0 votes
0 answers
62 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 ...
Awadhesh kumar's user avatar
0 votes
1 answer
1k 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 ...
kayleeFrye_onDeck's user avatar
0 votes
1 answer
134 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-...
AutoTester999's user avatar
1 vote
1 answer
2k 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 ...
AutoTester999's user avatar
0 votes
0 answers
79 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 {} ...
Paradox's user avatar
0 votes
1 answer
162 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 ...
Gabriel Hardoim's user avatar
1 vote
1 answer
331 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 (...
hublo's user avatar
  • 1,040
5 votes
1 answer
1k 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: ...
conversation.16's user avatar
1 vote
0 answers
47 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 ...
unrue's user avatar
  • 169
0 votes
1 answer
215 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?
unrue's user avatar
  • 169
1 vote
0 answers
33 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/...
user2607543's user avatar
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 ...
nteissler's user avatar
  • 1,523
0 votes
1 answer
1k 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....
Felix's user avatar
  • 5,472
0 votes
0 answers
378 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 ...
Ted's user avatar
  • 1
0 votes
1 answer
94 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 & ...
John Slegers's user avatar
  • 45.6k
2 votes
1 answer
3k 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....
overexchange's user avatar
  • 16.1k
0 votes
1 answer
1k 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 ...
Goutham Nithyananda's user avatar
5 votes
5 answers
19k 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. ...
NarendraR's user avatar
  • 7,617
0 votes
1 answer
3k 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 ...
iDev's user avatar
  • 2,213
0 votes
1 answer
31 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 ...
ArrchanaMohan's user avatar
1 vote
0 answers
564 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 ...
Nguyen Duy Tan To's user avatar
1 vote
1 answer
878 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 ...
jettatore's user avatar
  • 371
-1 votes
1 answer
28 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 ...
Moshe's user avatar
  • 4,805
1 vote
1 answer
2k 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....
PaulEdison's user avatar
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 ...
Siva Krishna's user avatar
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)...
Information Technology's user avatar
0 votes
1 answer
487 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....
kajalp's user avatar
  • 51

1
2 3 4 5
54