Bitbucket Artifact 没有将文件填充到下一步

问题描述 投票:0回答:0

我正在做一个有 2 个步骤的 bitbucket 管道,构建和部署。构建后我需要在下一步生成的文件,但工件没有按预期工作。尽管我正在创建的文件夹(“build”)在下一步中,但文件夹中的文件不是。 这是我的管道:

image: ibmcom/iib
pipelines:
  branches:
    develop:
      - step:
          name: build
          script:
          - . /opt/ibm/iib-10.0.0.11/server/bin/mqsiprofile
          - . /opt/ibm/iib-10.0.0.11/server/bin/mqsipackagebar -a pipelineGenerated.bar -w . -k $PROJECT_NAME
          - mkdir -p $BITBUCKET_CLONE_DIR/build
          - cp pipelineGenerated.bar $BITBUCKET_CLONE_DIR/build/pipelineGenerated.bar
          - ls -l $BITBUCKET_CLONE_DIR/build
          artifacts:
            - build/**
      - step:
          name: OverrideBar
          script:
          - ls -l $BITBUCKET_CLONE_DIR/buildere

如您所见,我在两个步骤中都运行“ls -l”来检查“build”文件夹的内容,这是输出: 步骤1:

如果我下载工件,它实际上有 pipelineGenerated.bar 文件 但是,在第 2 步中,当我需要该文件时,这是 ls -s 的输出

有什么想法吗?我整天都在处理这个问题...... 谢谢!!

bitbucket bitbucket-pipelines artifacts
© www.soinside.com 2019 - 2024. All rights reserved.