mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 03:41:01 +00:00
Fix parent pipeline number env on restarts (#3683)
This commit is contained in:
parent
26faa2bef3
commit
8b785be645
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func Restart(ctx context.Context, store store.Store, lastPipeline *model.Pipelin
|
||||||
}
|
}
|
||||||
|
|
||||||
newPipeline := createNewOutOfOld(lastPipeline)
|
newPipeline := createNewOutOfOld(lastPipeline)
|
||||||
newPipeline.Parent = lastPipeline.ID
|
newPipeline.Parent = lastPipeline.Number
|
||||||
|
|
||||||
err = store.CreatePipeline(newPipeline)
|
err = store.CreatePipeline(newPipeline)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue