linux - Error when archiving files in the CICD pipeline: error at the last step after transferring files to the archive (GitLab

When archiving files using pipeline, I get the following error:Cleaning up project directory and file

When archiving files using pipeline, I get the following error: Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit status 1

But at the same time, he transferred all the files to the archive

This is what my pipeline looks like:

.generate_package:
  image: registry.tomskasu.ru/gs-platform-team/gs-deploy-collector/rpm-builder:latest
  stage: archive
  variables:
    SERVER_FOLDER_NAME: "NAME of server" # Имя сервера
  before_script:
    - mkdir -p ./mnt
  script:
    - echo "Generating package for $SERVER_FOLDER_NAME"
    - cd /opt/deploy/$CI_PIPELINE_ID/$SERVER_FOLDER_NAME
    - tar -hcvf ../../$CI_PIPELINE_ID/$SERVER_FOLDER_NAME.tar *
    - cd /opt/deploy/$CI_PIPELINE_ID
  timeout: 4h

This is how I call it in my additional pipeline file:

generate_package_main:
  variables:
    SERVER_FOLDER_NAME: "MAIN"
  extends:
    - .generate_package

All files are available and need permissions

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742381878a4433281.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信