[JIRA] (JENKINS-60684) Job shown twice and creates duplicate folder in Windows

0 views
Skip to first unread message

geoff.bache@pobox.com (JIRA)

unread,
Jan 8, 2020, 2:37:02 AM1/8/20
to jenkinsc...@googlegroups.com
Geoff Bache created an issue
 
Jenkins / Bug JENKINS-60684
Job shown twice and creates duplicate folder in Windows
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2020-01-08 07:36
Environment: Jenkins 2.204
Windows Server 2016
Java 1.8.0_144
Priority: Minor Minor
Reporter: Geoff Bache

I have one Jenkins job that constantly shows up twice on the "All" tab in the main jobs view. The first link takes me to the job and shows the builds, the second shows the job as never having run.

If I look under the "jobs" folder on the disk in Windows explorer it seems Jenkins has somehow managed to create two folders with the same name and same parent. The "extra" one contains the directory "builds" with an empty file "legacyIds" and a file "permalinks" containing only the text

lastFailedBuild -1
lastSuccessfulBuild -1

If I rename or remove this folder and restart Jenkins, it is recreated with the same contents and the same behaviour in the Jenkins GUI.

If I go to the "Manage Jenkins" tab, this job is also listed as having data in an old format, though I've been unable to work out what it is referring to, and whether this is a symptom or a cause of the above problem.

We have many other Jenkins jobs that do not exhibit this behaviour. I wondered about folder permission but Jenkins seems to be able to write to the folder without difficulties when running the job, which works fine if you use the "correct version" of it.

I realise this is probably not enough information to reproduce this but I'm mostly looking for advice on how to troubleshoot this further.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

m.winter@sap.com (JIRA)

unread,
Jan 29, 2020, 7:04:02 PM1/29/20
to jenkinsc...@googlegroups.com
Markus Winter commented on Bug JENKINS-60684
 
Re: Job shown twice and creates duplicate folder in Windows

I doubt it is possible on Windows to create 2 entries in a folder that have the same name.

my guess would be that you really have 2 different jobs with slightly different name. Maybe something like job0 and jobO or maybe with different unicode characters that are displayed the same way.

Is the job config of both jobs identical?

geoff.bache@pobox.com (JIRA)

unread,
Jan 30, 2020, 2:51:02 AM1/30/20
to jenkinsc...@googlegroups.com
Geoff Bache closed an issue as Fixed
 
Change By: Geoff Bache
Status: Open Closed
Resolution: Fixed

geoff.bache@pobox.com (JIRA)

unread,
Jan 30, 2020, 2:51:03 AM1/30/20
to jenkinsc...@googlegroups.com
Geoff Bache commented on Bug JENKINS-60684
 
Re: Job shown twice and creates duplicate folder in Windows

Yes, you were correct. One of them had a BOM character (as used for UTF-8 encoding) at the start of the name. This was not visible in Jenkins, Windows Explorer or a DOS box.

I discovered I had two "jobs" folders for all the jobs, one under Program Files and one under the JENKINS_HOME. Removing the one under JENKINS_HOME seemed to cause it to be recreated from the one under "Program Files". But removing both of them seems to have got rid of the problem.

Will close this as I doubt it's much use to anyone else. Hard to tell how the "job" with the BOM character came to be created in the first place, but at least I've got rid of it now.

Reply all
Reply to author
Forward
0 new messages