OctopusDeploy / Issues

| Public | Bug reports and known issues for Octopus Deploy and all related tools
https://octopus.com
162 stars 20 forks source link

Can't create releases in a cloned project with feed variable that has been converted to config as code #7685

Open KennethBates opened 2 years ago

KennethBates commented 2 years ago

Team

Severity

One report with a workaround

Version

Reported in 2022.1.2584 and reproduced in 2022.3.2617-hotfix.4278

Latest Version

No response

What happened?

If you have a step's feed selection bound to a variable and clone the project then convert the cloned project to version control, you're unable to create releases for that project.

Reproduction

  1. In a non-version controlled project, bind the feed for package selection to a variable
  2. Clone the project
  3. Convert the cloned project to be version controlled
  4. Attempt to create a release of the cloned version controlled project
  5. See error below

Error and Stacktrace

UI throws:

An unexpected error occurred in Octopus v2022.3.2617-hotfix.4278: Cannot read properties of undefined (reading 'Links')

TypeError: Cannot read properties of undefined (reading 'Links')
i.searchPackages (https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:1:2966103)
https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:1:2181705
Array.map (<anonymous>)
r (https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:1:2181629)
https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:1:2182570
Array.map (<anonymous>)
https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:1:2182562
re.doBusyTaskInternal (https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:2:550680)
<computed> [as doBusyTaskInternal] (https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:2:195412)
re.doBusyTask (https://octopus-operations.octopus.app/app-main.63b64dcbf5362488dd6b.hashedasset.js:2:550310)

CLI throws:

Finding latest package for step: Deploy a Package
Could not find a feed with ID Feeds-1442, which is used by step: Deploy a Package
Exit code: -1

More Information

Reported here (private thread): https://help.octopus.com/t/cant-create-releases-from-the-ui-on-config-as-code-project/28003 Link to repro in ops instance

Workaround

Create a new external feed in Octopus (Library > External Feeds) pointing to the same feed Update the feed variable value in the clone to point to the new duplicate feed ID

AshleyMedway commented 2 years ago

Same issue but with the built in feed.

Our steps would just be 2 - 5 though:

  1. Clone the project
  2. Convert the cloned project to be version controlled
  3. Attempt to create a release of the cloned version controlled project
  4. See error below

Could not find a feed with ID feeds-builtin, which is used by step: Deploy

Any ideas how we can workaround when using the built in feed?

KennethBates commented 1 year ago

Unable to reproduce in 2023.1.4670-hotfix.6549