[JIRA] (JENKINS-61871) Prune stale tags does not prune stale tags in my docker test

0 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 10, 2020, 2:04:03 PM4/10/20
to jenkinsc...@googlegroups.com
Mark Waite created an issue
 
Jenkins / Bug JENKINS-61871
Prune stale tags does not prune stale tags in my docker test
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2020-04-10 18:03
Environment: The lts-with-plugins branch of my docker-lfs repository
Priority: Minor Minor
Reporter: Mark Waite

I have a JENKINS-40529 branch in my jenkins-bugs repository that contains a script that creates a new commit, tags the new commit with a unique tag name, and then deletes all other tag names locally and remotely which might have preceded that tag name.

That sequence of steps causes the remote repository to typically have only one tag for content on this branch. The preceding tags placed on that branch are deleted.

When I run a Freestyle project, I see that the tags accumulate in the workspace of the freestyle project as the job detects new changes and runs. That is the expected behavior without the "prune stale tags" extension.

When I add the "prune stale tags" extension on that job, I was expecting the tags to be removed from the workspace each time new changes are fetched into the repository. Unfortunately, with my docker image (using CLI git 2.17) and with several of my agents (one using CLI git 2.26), the stale tags are not removed from the workspace when new changes are fetched into the workspace. Refer to the config.xml file of my freestyle job for details.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 10, 2020, 2:04:03 PM4/10/20
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Nikolas Falco
Change By: Mark Waite
Assignee: Mark Waite Nikolas Falco

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 10, 2020, 2:14:04 PM4/10/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
I have a [JENKINS-40529 branch|https://github.com/MarkEWaite/jenkins-bugs/tree/JENKINS-40529] in my [jenkins-bugs repository|https://github.com/MarkEWaite/jenkins-bugs/] that contains a [script|https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-40529/remove-all-stale-tags-and-push-one] that creates a new commit, tags the new commit with a unique tag name, and then deletes all other tag names locally and remotely which might have preceded that tag name.


That sequence of steps causes the remote repository to typically have only one tag for content on this branch.  The preceding tags placed on that branch are deleted.

When I run a Freestyle project, I see that the tags accumulate in the workspace of the freestyle project as the job detects new changes and runs.  That is the expected behavior without the "prune stale tags" extension.

When I add the "prune stale tags" extension on that job, I was expecting the tags to be removed from the workspace each time new changes are fetched into the repository.  Unfortunately, with my [docker image|https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins] (using CLI git 2.17) and with several of my agents (one using CLI git 2.26), the stale tags are not removed from the workspace when new changes are fetched into the workspace.  Refer to the [config.xml file of my freestyle job|https://github.com/MarkEWaite/docker-lfs/blob/lts-with-plugins/ref/jobs/Bugs-Individual/jobs/JENKINS-40529-prune-stale-tags/config.xml] for details.

That branch of the jenkins-bugs repository also includes a Jenkinsfile which is showing the same behavior.  I'm using [git plugin 4.3.0 pre-release|https://github.com/MarkEWaite/docker-lfs/blob/lts-with-plugins/ref/plugins/git.jpi] and [git client plugin 3.3.0 pre-release|https://github.com/MarkEWaite/docker-lfs/blob/lts-with-plugins/ref/plugins/git-client.jpi].

nfalco79@hotmail.com (JIRA)

unread,
Apr 10, 2020, 2:23:02 PM4/10/20
to jenkinsc...@googlegroups.com
Nikolas Falco started work on Bug JENKINS-61871
 
Change By: Nikolas Falco
Status: Open In Progress

nfalco79@hotmail.com (JIRA)

unread,
Apr 10, 2020, 2:46:02 PM4/10/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 18, 2020, 4:26:02 PM4/18/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 18, 2020, 4:26:02 PM4/18/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages