Jenkins CodeDeploy插件错误

时间:2018-03-06 17:02:50

标签: jenkins plugins jenkins-plugins aws-code-deploy

所以我使用Jenkins codedeploy插件来触发从我的BitBucket仓库中提取的zip文件的S3存储桶,以便CodeDeploy可以将修订部署到我的EC2实例。通过Jenkins的某些服务成功,但其他服务因此日志错误而失败。注意:/ tmp目录的权限是700.

我想是为了避免这个警告错误,“npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:不支持的fsevents@1.1.3平台:想要{”os“:”darwin“,”arch“:”any“}(当前:{“os”:“linux”,“arch”:“x64”})“我可以做npm install --no-optional,但这显然不是构建不成功的原因。另一个值得注意的好处是,多个服务使用相同的代码部署应用程序和部署组来安装到同一个实例。即每个服务都从不同的分支中提取,并通过Code Deploy推送到同一个实例。我知道这听起来非常复杂,但是真的很感激这里的任何帮助!

Started by user xxxx
Building in workspace /var/lib/jenkins/workspace/Livit-Dev_Node
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://xxxx # timeout=10
Fetching upstream changes from https://xxxx
> git --version # timeout=10
using GIT_ASKPASS to set credentials 
> git fetch --tags --progress xxxx+refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/BRIDG-oauth-
implementation^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/BRIDG-oauth-
implementation^{commit} # timeout=10
Checking out Revision 0a2ebd5f1633483cea93d8a627870ac794a6556c 
(refs/remotes/origin/BRIDG-oauth-implementation)
> git config core.sparsecheckout # timeout=10
> git checkout -f 0a2ebd5f1633483cea93d8a627870ac794a6556c
Commit message: "Merged in Test-Commit (pull request #22)"
> git rev-list --no-walk f7b3a6a9a26e413412bb5ddadec504da9500ba35 # 
timeout=10
[Livit-Dev_Node] $ /bin/sh -xe /tmp/jenkins6283232840818429990.sh
+ npm -v 5.6.0
+ npm install --no-optional
npm WARN livit-backend@1.0.0 No repository field.
npm WARN livit-backend@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 
(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform 
for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: 
{"os":"linux","arch":"x64"})

up to date in 6.31s
Zipping files into /tmp/#13-767184457865657281.zip
Failed CodeDeploy post-build step; exception follows.
Unable to get file permissions
hudson.os.PosixException: Unable to get file permissions null
at hudson.util.IOUtils.mode(IOUtils.java:133)
at hudson.util.io.ZipArchiver.visit(ZipArchiver.java:55)
at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
at hudson.util.DirScanner$Glob.scan(DirScanner.java:131)
at hudson.FilePath$1.invoke(FilePath.java:473)
at hudson.FilePath$1.invoke(FilePath.java:469)
at hudson.FilePath.act(FilePath.java:1009)
at hudson.FilePath.act(FilePath.java:987)
at hudson.FilePath.archive(FilePath.java:469)
at hudson.FilePath.zip(FilePath.java:456)
atcom.amazonaws.codedeploy.AWSCodeDeployPublisher.zipAndUpload(AWSCodeDeployPublisher.java:358)
at com.amazonaws.codedeploy.AWSCodeDeployPublisher.perform(AWSCodeDeployPublisher.java:230)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at 

0 个答案:

没有答案