我们有一个由其他人开发的CircleCi流程,可以很好地完成最初的项目。在同一帐户下创建另一个Git项目并在CircleCi 2.0上进行设置后,通过代码部分获得“权限被拒绝”。
由于这适用于其他Git项目,所以我知道它的常规设置很好,但是显然存在某种类型的权限错误,因为它是同一Git用户,所以我不理解。
尝试查看CircleCi设置,但是当我删除.sh命令行脚本时,它工作正常,因此不是CircleCi设置问题。我根本不是Linux程序员,所以我不了解如何更新它。
version: 2
jobs:
build:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- run:
command: |
wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz | tar xJf -
./sfdx-cli-*/install
name: "Install SFDX"
- run:
command: "echo $DEV_HUB_AUTH_URL > /tmp/sfdx.url"
name: "Create temp sfdxurl file"
- run:
command: "sfdx force:auth:sfdxurl:store -f /tmp/sfdx.url -a circle_build_$CIRCLE_BUILD_NUM --setdefaultdevhubusername"
name: "Authorize DeveloperHub Org"
- run:
command: "./dx-utils/setup_scratch_org.sh circle_build_$CIRCLE_BUILD_NUM do_not_open_browser"
name: "Setup Scratch Org"
- run:
command: |
./dx-utils/run_tests.sh
- store_artifacts:
destination: test-result.txt
path: test_results/test-result.txt
- run:
command: "sfdx force:org:delete -u circle_build_$CIRCLE_BUILD_NUM -p\n"
name: "Delete DX Scratch Org"
when: always
- store_test_results:
path: test_results
现在
#!/bin/bash -eo pipefail
./dx-utils/setup_scratch_org.sh circle_build_$CIRCLE_BUILD_NUM do_not_open_browser
/bin/bash: ./dx-utils/setup_scratch_org.sh: Permission denied
Exited with code 1