Skip to content

Commit

Permalink
Try to copy step.yml first (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpusok authored and godrei committed Aug 29, 2019
1 parent f3d6ff3 commit 518e23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/run_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,13 +684,13 @@ func activateAndRunSteps(

log.Debugln("stepAbsLocalPth:", stepAbsLocalPth, "|stepDir:", stepDir)

if err := command.CopyDir(stepAbsLocalPth, stepDir, true); err != nil {
if err := command.CopyFile(filepath.Join(stepAbsLocalPth, "step.yml"), stepYMLPth); err != nil {
registerStepRunResults(stepmanModels.StepModel{}, stepInfoPtr, stepIdxPtr,
"", models.StepRunStatusCodeFailed, 1, err, isLastStep, true)
continue
}

if err := command.CopyFile(filepath.Join(stepAbsLocalPth, "step.yml"), stepYMLPth); err != nil {
if err := command.CopyDir(stepAbsLocalPth, stepDir, true); err != nil {
registerStepRunResults(stepmanModels.StepModel{}, stepInfoPtr, stepIdxPtr,
"", models.StepRunStatusCodeFailed, 1, err, isLastStep, true)
continue
Expand Down

0 comments on commit 518e23e

Please sign in to comment.