我们有一个jenkins服务器。我们尝试运行只包含一个命令的备份作业。我会将/var/jenkins_home
目录的内容上传到S3存储桶:
命令:
aws s3 cp --recursive /var/jenkins_home s3://our-bucket/backup-`date -I`
日志显示正确的事情。我的文件夹在桶里面: 日志:
Completed 12872 of 12875 part(s) with 3 file(s) remaining
upload: ../../../war/xx/xx/xx/xx.js to s3://our-bucket/backup-2016-05-18/war/scripts/xx/xx/xx.js
Completed 12873 of 12875 part(s) with 2 file(s) remaining
upload: ../../../xx/xx/xx to s3://our-bucket/backup-2016-05-18/xx/xx/xx/xx
Completed 12874 of 12875 part(s) with 1 file(s) remaining
upload: ../../../xx/xx.jar to s3://our-bucket/backup-2016-05-18/xx/xx.jar
Build step 'Execute shell' marked build as failure
Finished: FAILURE
为什么我会失败?