Skip to content
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

[New Amplify Console UI] Unable to redeploy older deployment #1464

Open
petetrickey opened this issue May 8, 2024 · 2 comments
Open

[New Amplify Console UI] Unable to redeploy older deployment #1464

petetrickey opened this issue May 8, 2024 · 2 comments
Assignees
Labels
bug Something isn't working console Issues related to Amplify console builds

Comments

@petetrickey
Copy link

petetrickey commented May 8, 2024

Environment information

----

Description

When attempting to deploy an older version of the App, we select the older deployment and then click the redeploy button.
The behaviour we are seeing is that no matter which older deployment we select, it is always the latest deployment that is deployed.

It clones the repository and then we see check out the commit hash from the latest successful deployment, rather than the older one we were trying to select (we were trying to roll back the app).
In the older version of the UI the older commit hash would have been selected and the older app version of the app would have been deployed.

Screenshot 2024-05-08 at 15 58 32
@petetrickey petetrickey added the pending-triage Incoming issues that need categorization label May 8, 2024
@Jay2113 Jay2113 self-assigned this May 8, 2024
@Jay2113 Jay2113 added the console Issues related to Amplify console builds label May 8, 2024
@Jay2113
Copy link

Jay2113 commented May 8, 2024

@petetrickey thanks for reaching out. We have identified this as a bug and have prioritized a fix for it. We are actively working on it and will keep you posted with any updates. In the meantime, as a workaround you can use the start-job CLI command to redeploy an existing job:

aws amplify start-job --app-id <YOUR_APP_ID> --job-id <YOUR_JOB_ID> --job-type RETRY

Docs: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/start-job.html

@Jay2113 Jay2113 added bug Something isn't working and removed pending-triage Incoming issues that need categorization labels May 8, 2024
@lanesawyer
Copy link

For anyone trying the CLI workaround, the new Amplify UI hides the job ID, but you can dig it up in the "Deploy" accordion and you'll see it listed as "buildId" in the logs.

In addition, you'll need to specify --branch-name on the command as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working console Issues related to Amplify console builds
Projects
None yet
Development

No branches or pull requests

3 participants