-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure when running swap slot task due to task using unexpected parameter during execution #11410
Comments
See the exact same behaviour when using the Task in a TaskGroup and passing in (or hardcoding) the slot in the taskgroup for Swap Slot operation compared with executing the task parameterless.
|
@Philo I understand your issue that an extra variable named 'Slot' is being passed in the pipeline when Swap Slots is selected. However, since we are not using the Slot variable anywhere it should not throw an error agreed. I will look into it and get back to you. |
Able to repro the issue. Looking into it. |
The issue is fixed and will be rolled out in a couple of weeks. I hope this is not a blocker for you since you can remove and add the task again to get rid of the old slot name value. |
Thank you @eaarora-ms |
Type: BUG
Enter Task Name: Swap slots
Environment
Issue Description
We have began to encounter the following issue with release pipelines using the "Swap slots" task. This has only started happening today, with all previous releases working as expected without any pipelines updates.
The "Swap slots" task is failing with the following message:
The error includes a variable
$(arm.siteSlotName)
that is not defined anywhere in the visible UI, however when exporting the pipeline and searching I have discovered the following:Within this snippet the task action is
Swap Slots
, with the parameterSourceSlot
shown in the UI and completed correctly. However, theSlot
parameter is also listed and completed with a different variable. This is the case because we frequently copy and clone tasks within a pipeline and alter the action and update the parameters. I would appear that a recent update is causing the "Swap slots" task to fail due to this extra parameter not related to its own action:If I change only the action for this task the following is displayed:
In order to workaround/fix this issue we have had to manual alter each task, switch the action, delete the value in
Slot
and re-save the pipeline.The text was updated successfully, but these errors were encountered: