报错信息:
[16:17:40] 开始触发Jenkins任务aliyun-deploy的构建
[16:17:40] panic: runtime error: invalid memory address or nil pointer dereference
[16:17:40] [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x79405d]
[16:17:40]
[16:17:40] goroutine 1 [running]:
[16:17:40] github.com/kirinlabs/HttpRequest.(*Response).StatusCode(...)
[16:17:40] /go/pkg/mod/github.com/kirinlabs/!http!request@v0.1.5/response.go:23
[16:17:40] gitlab.alibaba-inc.com/aone/aone-execution-command/commands/pkg/jenkins.(*Instance).GetMasterNode(0xc000123578, 0xc0000cae20, 0x870162, 0x57fb42, 0x0, 0xc0000cae30, 0xc0000b8b10, 0x607690, 0xc000123488, 0x2, ...)
[16:17:40] /go/src/gitlab.alibaba-inc.com/aone/aone-execution-command/commands/pkg/jenkins/api.go:19 +0x18d
[16:17:40] main.main.func1(0xc0000e0840, 0x0, 0xc0000b8b10)
[16:17:40] /go/src/gitlab.alibaba-inc.com/aone/aone-execution-command/commands/cmd/jenkins-cli/main.go:77 +0xb8
[16:17:40] github.com/urfave/cli.HandleAction(0x7e5980, 0x88d818, 0xc0000e0840, 0xc0000e0840, 0x0)
[16:17:40] /go/pkg/mod/github.com/urfave/cli@v1.22.2/app.go:523 +0xbe
[16:17:40] github.com/urfave/cli.Command.Run(0x86e389, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x876846, 0x13, 0x0, ...)
[16:17:40] /go/pkg/mod/github.com/urfave/cli@v1.22.2/command.go:174 +0x51c
[16:17:40] github.com/urfave/cli.(*App).Run(0xc000162000, 0xc0000c0000, 0xc, 0xc, 0x0, 0x0)
[16:17:40] /go/pkg/mod/github.com/urfave/cli@v1.22.2/app.go:276 +0x725
[16:17:40] main.main()
[16:17:40] /go/src/gitlab.alibaba-inc.com/aone/aone-execution-command/commands/cmd/jenkins-cli/main.go:182 +0x8a7
[16:17:40] [ERROR] BUILD ERROR
[16:17:40] [ERROR] 181599206
[16:17:40] [ERROR] 2
看内容似乎是执行命令相关容器内存或硬盘空间不足导致的异常,目前本人测试是成功率较低,需要重试多次才可以部署成功
从提供的错误日志来看,问题可能是由于内存地址或空指针引用导致的。这可能是由于Jenkins任务在执行过程中出现了问题。为了解决这个问题,你可以尝试以下方法:
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。