jenkinsci / remote-file-plugin

Remote File Plugin Repository
https://plugins.jenkins.io/remote-file/
MIT License
56 stars 16 forks source link

recreate branch on in multibranch will use the old jenkinsfile #154

Open morlajb opened 8 months ago

morlajb commented 8 months ago

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

morgoved commented 6 months ago

same issue