Skip to content

codeUri 找不到时不会以非 0 返回码结束进程 #12

Open
@DevDengChao

Description

@DevDengChao
yarn run v1.22.18
$ s deploy function --use-local -y && s deploy trigger --use-local -y
[2022-05-05 03:18:50] [INFO] [S-CORE] - Start the pre-action
[2022-05-05 03:18:50] [INFO] [S-CORE] - Action: website-fc
✖ Message:

ERROR:

ENOENT: no such file or directory, lstat 'D:\workspace\nodejs\xxx\dist'        

TraceId:     00155dbef1381651720731061
Environment: @serverless-devs/s: 2.1.0, core: 0.1.35, s-home: C:\Users\Admin\.s, win32-x64, node-v16.13.1
Documents:   https://www.serverless-devs.com
Discussions: https://github.com/Serverless-Devs/Serverless-Devs/discussions
Issues:      https://github.com/Serverless-Devs/Serverless-Devs/issues

Please copy traceId: 00155dbef1381651720731061 and join Dingding group: 33947367 for consultation.
You can run 's clean --all' to clean Serverless devs.

[2022-05-05 03:18:52] [INFO] [S-CORE] - Start the pre-action
[2022-05-05 03:18:52] [INFO] [S-CORE] - Action: website-fc
✖ Message:

ERROR:

ENOENT: no such file or directory, lstat 'D:\workspace\nodejs\xxx\dist'

TraceId:     00155dbef1381651720732219
Environment: @serverless-devs/s: 2.1.0, core: 0.1.35, s-home: C:\Users\Admin\.s, win32-x64, node-v16.13.1
Documents:   https://www.serverless-devs.com
Discussions: https://github.com/Serverless-Devs/Serverless-Devs/discussions
Issues:      https://github.com/Serverless-Devs/Serverless-Devs/issues

Please copy traceId: 00155dbef1381651720732219 and join Dingding group: 33947367 for consultation.
You can run 's clean --all' to clean Serverless devs.

Done in 2.41s.

Process finished with exit code 0

由于进程以 0 返回码结束, 导致 CI 误以为步骤运行成功, 出现流水线运行成功但是网站未更新的情况.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions