[ Trigger ] Feeds variable can't get value

Hello Octopus Team,

We are facing strange issue when triggering for release creation and deployment, while not having such behavior creating release manualy or with octo cli from our CI.

RAW log :

Task ID:        ServerTasks-219427
Related IDs:    Spaces-48
Task status:    Success
Task queued:    jeudi, 24 juin 2021 10:42:19  +02:00
Task started:   jeudi, 24 juin 2021 10:42:19  +02:00
Task completed: jeudi, 24 juin 2021 10:42:19  +02:00
Task duration:  less than a second
Server version: 2020.6.4722+Branch.release-2020.6.Sha.49d1a1050c9bb43cce9b9e9741314b2bb3df3691
Server node:    XXXXXX
                    | == Warning: Process recurring scheduled triggers ==
                    |   == Warning: Processing Deploy daily integration ==
10:42:19   Info     |     Processing trigger [Deploy daily integration](~/app#/Spaces-48/projects/Projects-851/triggers/scheduled/edit/ProjectTriggers-224)...
10:42:19   Info     |     Creating and deploying a new release for project AVA-G in the Development channel to INT.
10:42:19   Error    |     A scheduled trigger failed while attempting to create and deploy a release
                    |     The feed '#{G_Feeds_ArtefactsRun}' referenced by the step 'Deploy Secours' in this project could not be resolved. Please review your feed variable.
                    |     Octopus.Server.Communications.Packages.ReleaseCreation.ReleaseCreationFailedException: The feed '#{G_Feeds_ArtefactsRun}' referenced by the step 'Deploy Secours' in this project could not be resolved. Please review your feed variable.
                    |     at Octopus.Server.Communications.Packages.SnapshotCreationFactory`1.ValidateFeedAvailable(IEnumerable`1 availableFeedIds, String feedId, String actionName) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Communications\Packages\SnapshotCreationFactory.cs:line 181
                    |     at Octopus.Server.Communications.Packages.SnapshotCreationFactory`1.AddLatestPackageWhereNoneExplicitlyProvided(IOctopusQueryExecutor queryExecutor, ISnapshot snapshot, IProcess deploymentProcess, PackageReferenceResolver packageReferenceResolver) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Communications\Packages\SnapshotCreationFactory.cs:line 164
                    |     at Octopus.Server.Communications.Packages.SnapshotCreationFactory`1.FillAndCreateSnapshot(IOctopusQueryExecutor queryExecutor, Project project, IProcess process, TSnapshot snapshot, IOctopusPrincipalInternal octopusPrincipal) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Communications\Packages\SnapshotCreationFactory.cs:line 80
                    |     at Octopus.Server.Communications.Packages.ReleaseCreation.ReleaseCreationFactory.FillAndCreateRelease(IOctopusQueryExecutor queryExecutor, Project project, Release release, IOctopusPrincipalInternal octopusPrincipal) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Communications\Packages\ReleaseCreation\ReleaseCreationFactory.cs:line 42
                    |     at Octopus.Server.Orchestration.ServerTasks.ProcessRecurringScheduledDeployments.ScheduledProjectTriggerProcessor.CreateRelease(Project project, DeploymentSettings settings, Channel channel) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Orchestration\ServerTasks\ProcessRecurringScheduledDeployments\ScheduledProjectTriggerProcessor.cs:line 397
                    |     at Octopus.Server.Orchestration.ServerTasks.ProcessRecurringScheduledDeployments.ScheduledProjectTriggerProcessor.DeployNewRelease(ProjectTrigger trigger) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Orchestration\ServerTasks\ProcessRecurringScheduledDeployments\ScheduledProjectTriggerProcessor.cs:line 283
                    |     at Octopus.Server.Orchestration.ServerTasks.ProcessRecurringScheduledDeployments.ScheduledProjectTriggerProcessor.SafelyDeployNewRelease(ProjectTrigger trigger) in C:\BuildAgent\work\b5c671f6c6f2b660\source\Octopus.Server\Orchestration\ServerTasks\ProcessRecurringScheduledDeployments\ScheduledProjectTriggerProcessor.cs:line 253
                    |     Octopus.Server version 2020.6.4722 (2020.6.4722+Branch.release-2020.6.Sha.49d1a1050c9bb43cce9b9e9741314b2bb3df3691)
10:42:19   Verbose  |     Updated the last scheduled time for Deploy daily integration to 24/06/2021 08:42:19

The project configurations :

Do you have any ideas why is this happening only with trigger?



Hi @gregory.blanc,

Thanks for reaching out! Sorry to hear about your issues.

It looks as though you’re, unfortunately, hitting a known issue that’s on our radar.
Please feel free to take a look at the GitHub Issue. You can follow it if you wish to receive updates. I’ve added your case and version to the issue for visibility.

When deploying from a trigger, we’ve noticed that Octopus has an issue substituting the value for the package feed when using a Library Variable Set.

The workaround we suggest is using a Project Variable, which I can see you are using to reference the Library Variable Set. To get you up and running until there’s a fix, is it possible for you to directly reference the feed inside the project variable - unscoped?

Please let me know if you have any further questions or issues.

Kind Regards,

Hi @adam.hollow,

It can’t be a long term solution with lots of projects :sweat_smile:
But I’ve tried putting values directly in Project variable like you proposed and it’s working.

Thanks a lot for super fast answer!

Have a nice end of day.


1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.