Loading...
Loading...
Compare original and translation side by side
See Getting Started for installation, authentication, and finding your application ID.
有关安装、身份验证和查找应用ID的信息,请查看**入门指南**。
Important:fires immediately — there is no confirmation prompt. Verify your application ID and target branch before running.pipelines start
重要提示:命令会立即执行——没有确认提示。请在运行前验证你的应用ID和目标分支。pipelines start
undefinedundefined
Proceed with `start` only after confirming the correct application and branch.
确认应用和分支正确后,再执行`start`命令。pipelines start --application-id=1g2i3b4b5o6u7spipelines start --application-id=1g2i3b4b5o6u7spipelines start \
--application-id=1g2i3b4b5o6u7s \
--vcs-path=feature/my-branchpipelines start \
--application-id=1g2i3b4b5o6u7s \
--vcs-path=feature/my-branchpipelines start \
--application-id=1g2i3b4b5o6u7s \
--vcs-path=feature/my-branch \
--deploy-vcs-path=deploy/my-branchdeploy/my-branchpipelines start \
--application-id=1g2i3b4b5o6u7s \
--vcs-path=feature/my-branch \
--deploy-vcs-path=deploy/my-branchdeploy/my-branchpipelines start \
--application-id=1g2i3b4b5o6u7s \
--vcs-path=main \
-D MY_VAR=foo \
-D ANOTHER_VAR=barpipelines start \
--application-id=1g2i3b4b5o6u7s \
--vcs-path=main \
-D MY_VAR=foo \
-D ANOTHER_VAR=barpipelines start --application-id=1g2i3b4b5o6u7s --tailpipelines start --application-id=1g2i3b4b5o6u7s --tailpipelines start --application-id=1g2i3b4b5o6u7s --tail --delay=5pipelines start --application-id=1g2i3b4b5o6u7s --tail --delay=5pipelines start \
--application-id=1g2i3b4b5o6u7s \
--retries=3 \
--delay=5pipelines start \
--application-id=1g2i3b4b5o6u7s \
--retries=3 \
--delay=5--source-vcs-uri--source-key-pathpipelines start \
--application-id=1g2i3b4b5o6u7s \
--source-vcs-uri=git@github.com:myorg/myrepo.git \
--source-key-path=~/.ssh/id_rsa \
--vcs-path=mainNote: Pass the private key path, not thefile..pub
--source-vcs-uri--source-key-pathpipelines start \
--application-id=1g2i3b4b5o6u7s \
--source-vcs-uri=git@github.com:myorg/myrepo.git \
--source-key-path=~/.ssh/id_rsa \
--vcs-path=main注意:传入的是私钥路径,不是公钥文件。.pub
pipelines start --application-id=1g2i3b4b5o6u7s --keep-process-alivepipelines start --application-id=1g2i3b4b5o6u7s --keep-process-alivepipelines start \
--codebase-id=abcd1234-5678-90ab-cdef-000000000000 \
--vcs-path=mainSuccessfully started a build:
VCS path: main
Target deployment branch: pipelines-build-main
Job ID: job-abc12345pipelines start \
--codebase-id=abcd1234-5678-90ab-cdef-000000000000 \
--vcs-path=mainSuccessfully started a build:
VCS path: main
Target deployment branch: pipelines-build-main
Job ID: job-abc12345pipelines status --application-id=1g2i3b4b5o6u7s --job-id=latestpipelines status --application-id=1g2i3b4b5o6u7s --job-id=latestpipelines status \
--application-id=1g2i3b4b5o6u7s \
--job-id=job-abc12345pipelines status \
--application-id=1g2i3b4b5o6u7s \
--job-id=job-abc12345pipelines status \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest:mainJob ID: job-abc12345
Status: succeeded
Summary:
Site: my-site
VCS path: main
Submitted: 2024-02-20 10:15:00 (UTC)
Started: 2024-02-20 10:15:05 (UTC)
Finished: 2024-02-20 10:18:34 (UTC)succeededabortedsystem failurebuild errorqueuedrunningpausedpipelines status \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest:mainJob ID: job-abc12345
Status: succeeded
Summary:
Site: my-site
VCS path: main
Submitted: 2024-02-20 10:15:00 (UTC)
Started: 2024-02-20 10:15:05 (UTC)
Finished: 2024-02-20 10:18:34 (UTC)succeededabortedsystem failurebuild errorqueuedrunningpausedpipelines status \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest \
--format=jsonpipelines status \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest \
--format=jsonpipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=latestpipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=latestpipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=job-abc12345pipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=job-abc12345pipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest \
--tailpipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest \
--tailpipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest > pipeline.log 2>&1pipelines logs \
--application-id=1g2i3b4b5o6u7s \
--job-id=latest > pipeline.log 2>&1pipelines list-jobs 1g2i3b4b5o6u7spipelines list-jobs 1g2i3b4b5o6u7spipelines terminate-job \
--application-id=1g2i3b4b5o6u7s \
--job-id=job-abc12345pipelines terminate-job \
--application-id=1g2i3b4b5o6u7s \
--job-id=job-abc12345acquia-pipelines.ymlpipelines encryptacquia-pipelines.ymlacquia-pipelines.ymlpipelines encryptacquia-pipelines.ymlacquia-pipelines.ymlpipelines startacquia-pipelines.ymlpipelines startversion: 1.1.0
events:
build:
steps:
- build:
type: script
script:
- composer installversion: 1.1.0
events:
build:
steps:
- build:
type: script
script:
- composer installservicesversion: 1.1.0
services:
- php:
version: 8.2
events:
build:
steps:
- composer:
type: script
script:
- composer install --no-progress8.18.28.3servicesversion: 1.1.0
services:
- php:
version: 8.2
events:
build:
steps:
- composer:
type: script
script:
- composer install --no-progress8.18.28.3mysqlservicesversion: 1.0.0
services:
- mysql
events:
build:
steps:
- build:
type: script
script:
- mysql -u root -proot -e "CREATE DATABASE mydb"
- composer install --no-interaction127.0.0.1:3306root:rootservicesmysqlversion: 1.0.0
services:
- mysql
events:
build:
steps:
- build:
type: script
script:
- mysql -u root -proot -e "CREATE DATABASE mydb"
- composer install --no-interaction127.0.0.1:3306root:rootvariables.globalversion: 1.1.0
variables:
global:
APP_ENV: ci
PHP_MEMORY_LIMIT: 512M
events:
build:
steps:
- build:
type: script
script:
- composer installpipelines encryptvariables.globalversion: 1.1.0
variables:
global:
APP_ENV: ci
PHP_MEMORY_LIMIT: 512M
events:
build:
steps:
- build:
type: script
script:
- composer installpipelines encrypt
Then reference it in the YAML:
```yaml
variables:
global:
MY_SECRET:
secure: <paste encrypted output here>$MY_SECRET
然后在YAML中引用:
```yaml
variables:
global:
MY_SECRET:
secure: <粘贴加密输出>$MY_SECRETundefinedundefined
Reference it in the YAML under `ssh-keys`:
```yaml
version: 1.1.0
ssh-keys:
my-deploy-key:
secure: <encrypted private key>
events:
build:
steps:
- build:
type: script
script:
- composer install
在YAML的`ssh-keys`下引用:
```yaml
version: 1.1.0
ssh-keys:
my-deploy-key:
secure: <加密后的私钥>
events:
build:
steps:
- build:
type: script
script:
- composer installversion: 1.1.0
services:
- php:
version: 8.2
- mysql
variables:
global:
APP_ENV: ci
DB_URL: mysql://root:root@127.0.0.1:3306/mydb
NPM_TOKEN:
secure: <encrypted token>
events:
build:
steps:
- setup-db:
type: script
script:
- mysql -u root -proot -e "CREATE DATABASE mydb"
- backend:
type: script
script:
- composer install --no-interaction
- frontend:
type: script
script:
- nvm install node
- npm install
- npm run buildversion: 1.1.0
services:
- php:
version: 8.2
- mysql
variables:
global:
APP_ENV: ci
DB_URL: mysql://root:root@127.0.0.1:3306/mydb
NPM_TOKEN:
secure: <加密后的令牌>
events:
build:
steps:
- setup-db:
type: script
script:
- mysql -u root -proot -e "CREATE DATABASE mydb"
- backend:
type: script
script:
- composer install --no-interaction
- frontend:
type: script
script:
- nvm install node
- npm install
- npm run buildpipelines validateundefinedpipelines validateundefined
Then trigger and stream logs to catch runtime errors immediately:
```bash
pipelines start --application-id=<app-id> --tail
然后触发作业并流式查看日志,以便立即捕获运行时错误:
```bash
pipelines start --application-id=<app-id> --tailpipelines github:connectpipelines github:connectpipelines github:disconnectpipelines github:disconnectundefinedundefined - name: Configure credentials
run: |
echo "${{ secrets.PIPELINES_CONFIG }}" > ~/.pipelines-config
- name: Start pipeline
run: |
pipelines start \
--application-id=${{ vars.ACQUIA_APP_ID }} \
--vcs-path=main \
--tailundefined - name: Configure credentials
run: |
echo "${{ secrets.PIPELINES_CONFIG }}" > ~/.pipelines-config
- name: Start pipeline
run: |
pipelines start \
--application-id=${{ vars.ACQUIA_APP_ID }} \
--vcs-path=main \
--tailundefined#!/bin/bash
set -e
APP_ID="1g2i3b4b5o6u7s"
BRANCH="main"
echo "Starting pipeline..."
pipelines start --application-id=$APP_ID --vcs-path=$BRANCH
echo "Waiting for job to complete..."
while true; do
STATUS=$(pipelines status \
--application-id=$APP_ID \
--job-id=latest:$BRANCH \
--format=json | python3 -c "import sys,json; print(json.load(sys.stdin)['status'])")
echo "Status: $STATUS"
case "$STATUS" in
succeeded)
echo "Pipeline succeeded!"
exit 0
;;
"build error"|aborted|"system failure")
echo "Pipeline failed: $STATUS"
pipelines logs --application-id=$APP_ID --job-id=latest:$BRANCH
exit 1
;;
esac
sleep 15
done#!/bin/bash
set -e
APP_ID="1g2i3b4b5o6u7s"
BRANCH="main"
echo "Starting pipeline..."
pipelines start --application-id=$APP_ID --vcs-path=$BRANCH
echo "Waiting for job to complete..."
while true; do
STATUS=$(pipelines status \
--application-id=$APP_ID \
--job-id=latest:$BRANCH \
--format=json | python3 -c "import sys,json; print(json.load(sys.stdin)['status'])")
echo "Status: $STATUS"
case "$STATUS" in
succeeded)
echo "Pipeline succeeded!"
exit 0
;;
"build error"|aborted|"system failure")
echo "Pipeline failed: $STATUS"
pipelines logs --application-id=$APP_ID --job-id=latest:$BRANCH
exit 1
;;
esac
sleep 15
donepipelines list-applicationspipelines start--taillogspipelines configurepipelines status --job-id=latestpipelines encryptacquia-pipelines.ymlpipelines startpipelines list-applications--taillogspipelines configurepipelines status --job-id=latestacquia-pipelines.ymlpipelines encrypt| Error | Cause | Solution |
|---|---|---|
| Credentials not configured or expired | Run |
| Missing | Add the build definition file and push |
| Branch not pushed to Acquia remote | Push the branch first: |
| | Commit and push the build file |
| Job ID is invalid or expired | Use |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 未配置凭据或凭据已过期 | 重新运行 |
| 仓库中缺少 | 添加构建定义文件并推送 |
| 分支未推送到Acquia远程仓库 | 先推送分支: |
| | 提交并推送构建文件 |
| 作业ID无效或已过期 | 使用 |