remote-file-plugin icon indicating copy to clipboard operation
remote-file-plugin copied to clipboard

recreate branch on in multibranch will use the old jenkinsfile

Open morlajb opened this issue 1 year ago • 1 comments

In a multibranch pipeline, we encountered a situation where there was a branch named "aaa" with a corresponding remote Jenkinsfile repository having the same branch name.

After merging the "aaa" branch into the multibranch pipeline, deleting the remote Jenkinsfile repository for the "aaa" branch, and subsequently recreating the "aaa" branch, the pipeline started using an outdated Jenkinsfile.

couldn't find any cleanup mechanism in place for managing Jenkinsfiles in such scenarios.

To Reproduce

  1. create branch aaa in multibranch + the same aaa branch in remote repo
  2. merge aaa / or delete aaa in multi branch project
  3. delete aaa branch from remote jenkinsfiles repo 4 recreate aaa branch in multibranch - it use the very old Jenkinsfile

Expected behavior use the latest jenkinsfile

Screenshots If applicable, add screenshots to help explain your problem.

Jenkins LTS - 2.414.3 plugin version : 1.24

morlajb avatar Jan 24 '24 16:01 morlajb

same issue

morgoved avatar Mar 13 '24 19:03 morgoved