Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Error when selecting `Deploy new release` option on version controlled project's scheduled trigger

Open KennethBates opened this issue 3 years ago • 3 comments

Team

  • [X] I've assigned a team label to this issue

Severity

Found internally

Version

Reproduced in 2022.3.10382 & 2022.4.1372-hotfix.1656

Latest Version

No response

What happened?

When selecting Deploy new release option in a scheduled trigger for a version controlled project, the frontend throws an error preventing the trigger from being saved.

Reproduction

  1. Create a scheduled trigger in a version controlled (CaC) project
  2. Select Deploy new release in the trigger
  3. See error

Error and Stacktrace

An unexpected error occurred in Octopus v2022.3.10382: "Error: Can't map GitRefType.Unknown to RefTypes" in g in GitRefSelector in GitRefFormSection in div in ForwardRef

More Information

Workaround

Rather than selecting Deploy new release, leave the Trigger Action set to Deploy latest release then fill out the relevant information and click SAVE. Once the trigger is created, go back and edit the newly created trigger and set the Trigger Action to Deploy new release and make any necessary adjustments from there.

KennethBates avatar Sep 15 '22 04:09 KennethBates

This is happening in Samples (https://samples.octopus.app/app#/Spaces-1/projects/aws-octosubscriber/deployments) if you need a repro env.

twerthi avatar Sep 16 '22 18:09 twerthi

Another user is experiencing this issue. Internal ticket link

AdamHollow49 avatar Oct 11 '22 10:10 AdamHollow49

A user is experiencing this issue and the workaround is not working for them: internal ticket link

SeanStanway-Octopus avatar Oct 21 '22 14:10 SeanStanway-Octopus

Release Note: Fix error when creating scheduled trigger on Git project

octoreleasebot avatar Jan 03 '23 23:01 octoreleasebot

:tada: The fix for this issue has been released in:

Release stream Release
2022.4 2022.4.8267
2023.1 2023.1.4403
2023.2+ all releases

Octobob avatar Feb 17 '23 06:02 Octobob