报错:CodeArts部署Java/SpringBoot/SpringCloud项目报错:Deploy task execution failed.

背景:
目前想要部署SpringCloud服务,使用页面传参的方式。但是传参后,部署报错。错误如下:

[2024/06/28 18:09:29.114 GMT+08:00] ok: [1_***.***.***.226] => {
[2024/06/28 18:09:29.114 GMT+08:00]     "msg": "The command to be executed is:java -DPAAS_CSE_SC_ENDPOINT=https://***.***.***.118:30100 -DPAAS_CSE_CC_ENDPOINT=https://***.***.***.118:30110 -jar /usr/local/backend/campusmall-user-1.0-SNAPSHOT.jar --spring.redis.host=redis-142d9d93-8878-4b14-950f-02d110842323.cn-north-4.dcs.myhuaweicloud.com\n --spring.redis.password**** --spring.datasource.url=jdbc:mysql://***.***.***.117:35623/campusmall?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=Rd@s2135f"
[2024/06/28 18:09:29.114 GMT+08:00] }
...
...
...
[2024/06/28 18:10:36.526 GMT+08:00] Aborted by jenkins
[2024/06/28 18:10:36.590 GMT+08:00] [ERROR]  : Deploy task execution failed.
[2024/06/28 18:10:36.635 GMT+08:00] [INFO]  Delete temporary file start. 
[2024/06/28 18:10:36.647 GMT+08:00] [INFO]  Delete temporary file successfully.
[2024/06/28 18:10:36.649 GMT+08:00] [INFO]  : [frame] current slave-type: kubernetes
[2024/06/28 18:10:36.649 GMT+08:00] [INFO]  : [frame] no need to save job information into slave.
[2024/06/28 18:10:36.711 GMT+08:00] [INFO]  : [JobStatusPlugin] onCompleted: job_1a14fb14036c4134ae8cd762957eb573_1719569265760 #1
[2024/06/28 18:10:36.712 GMT+08:00] [INFO]  : [JobStatusPlugin] onCompleted end: job_1a14fb14036c4134ae8cd762957eb573_1719569265760 #1
[2024/06/28 18:10:36.770 GMT+08:00] Finished: ABORTED

通过观察"msg"所对应的值,可以看到具体的执行的命令(The command to be executed is后面就是对应的命令),观察命令是否有错,可以发现参数--spring.redis.host多了个换行符\n

-DPAAS_CSE_SC_ENDPOINT=https://***.***.***.118:30100 -DPAAS_CSE_CC_ENDPOINT=https://***.***.***.118:30110 -jar /usr/local/backend/campusmall-user-1.0-SNAPSHOT.jar --spring.redis.host=redis-142d9d93-8878-4b14-950f-02d110842323.cn-north-4.dcs.myhuaweicloud.com\n --spring.redis.password**** --spring.datasource.url=jdbc:mysql://***.***.***.117:35623/campusmall?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=Rd@s2135f

注意修改参数,将\n删掉即可。

附带另外一个注意事项:网关不要使用带下划线的名称。
https://blog.csdn.net/a_lllk/article/details/118482620

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

邵奈一

教育是一生的事业。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值