gatsby构建未在jenkins上运行,显示错误“错误插件gatsby-source-strapi返回错误”

时间:2019-05-30 05:56:48

标签: jenkins jenkins-pipeline gatsby strapi

我在詹金斯有一个CICD管道,该管道最初与trapi连接,然后它将进行gatsby构建。但是在詹金斯中,它显示错误Plugin gatsby-source-strapi returned an errorRequest failed with status code 500。我的詹金斯人在AWS服务器实例上运行。但是,当我在本地主机jenkins中尝试此CICD构建时,它工作正常。

我的詹金斯可能有什么问题。

还是我需要更改gatsby-config.js?

我的詹金斯错误消息

error Plugin gatsby-source-strapi returned an error

[0m
[0m  [0m[97m[41mError[0m[37m[41m:[0m[37m[41m [0m[97m[41mRequest failed with status code 500[0m
[0m  [0m
[0m  [0m[90m-[0m [0m[93mcreateError.js[0m[90m:[0m[93m16[0m[37m [0m[37mcreateError[0m
[0m  [0m  [0m[90m[SH_Website_CI_CD]/[axios]/lib/core/createError.js:16:15[0m
[0m  [0m
[0m  [0m[90m-[0m [0m[93msettle.js[0m[90m:[0m[93m18[0m[37m [0m[37msettle[0m
[0m  [0m  [0m[90m[SH_Website_CI_CD]/[axios]/lib/core/settle.js:18:12[0m
[0m  [0m
[0m  [0m[90m-[0m [0m[93mhttp.js[0m[90m:[0m[93m201[0m[37m [0m[37mIncomingMessage.handleStreamEnd[0m
[0m  [0m  [0m[90m[SH_Website_CI_CD]/[axios]/lib/adapters/http.js:201:11[0m
[0m  [0m
[0m  [0m[90m-[0m [0m[93mnext_tick.js[0m[90m:[0m[93m63[0m[37m [0m[37mprocess._tickCallback[0m
[0m  [0m  [0m[90minternal/process/next_tick.js:63:19[0m
[0m  [0m
[0m
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gatsby-starter-default@0.1.0 cdnBuild: `NODE_ENV=cdn gatsby build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gatsby-starter-default@0.1.0 cdnBuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/lib/jenkins/.npm/_logs/2019-05-30T05_40_12_432Z-debug.log
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
ERROR - hudson.AbortException: script returned exit code 1

任何帮助

谢谢

0 个答案:

没有答案