Skip to content

Commit

Permalink
Use new build status key format
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Oct 1, 2021
1 parent a7b5b67 commit 510a339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,11 +690,11 @@ func (a *App) StartBuild(createReviewApp bool) (*codebuild.Build, error) {
func (a *App) BuildStatus(build *codebuild.Build) (*BuildStatus, error) {
var pk string
if a.IsReviewApp() {
pk = fmt.Sprintf("APP#%s:%s#BUILD", a.Name, *a.ReviewApp)
pk = fmt.Sprintf("APP#%s:%s", a.Name, *a.ReviewApp)
} else {
pk = fmt.Sprintf("APP#%s#BUILD", a.Name)
pk = fmt.Sprintf("APP#%s", a.Name)
}
item, err := ddbItem(a.Session, pk, fmt.Sprintf("%010d", *build.BuildNumber))
item, err := ddbItem(a.Session, pk, fmt.Sprintf("BUILD#%010d", *build.BuildNumber))
if err != nil {
logrus.Debug(err)
return nil, fmt.Errorf("no status found for build #%d", *build.BuildNumber)
Expand Down

0 comments on commit 510a339

Please sign in to comment.