You can’t run the pipelines-deploy
command inside the build event.
Create, deploy, or delete a Cloud Platform CD environment, depending on the event it is executed within. The
pipelines-deploy command creates a Cloud Platform CD environment and
deploys the build artifact if executed in the post-deploy
event. The pipelines-deploy command deletes the corresponding
Cloud Platform CD environment when used in pr-merged or
pr-closed events. While this command can be executed in any
event of the build definition file, Acquia recommends using it in the
post-deploy event.
Note
If you remove a source branch from your external repository and then run
pipelines, the underlying Cloud Platform CD environment won’t be destroyed.
You will only experience failed Pipelines build jobs as the service can’t
find the source branch.
Provide information from the container or the build execution for your use
in other steps—for example, one item from a specific execution step whose
value will influence a future direction in your build process. You can run this
command from any section of your build definition file.
To view the contents of any metadata created using this key, run the
status command with the --format=json
option.
Usage
pipelines_metadata KEY VALUE [options]
where
[key] is the variable name you want to create for reporting
[value] is the value you want to set for your created variable
[options] are any additional options you need to specify
Do not use the = operator. Use the format -u[value] or
--url[value].
Alias
Arguments
-a
--app – Pipelines application id. Default value is set using
$PIPELINES_APPLICATION_ID
-d
--debug – Debug the network connection.
-h
--help – This help text
-j
--job-id – Pipelines job id. Default value is set using
$PIPELINES_JOB_ID
-t
--token – Temporary Pipelines auth token. Default value is set using
$PIPELINES_JOB_AUTH_TOKEN
pipelines-sync-dbs
Syncs the databases provided as parameters, provided they are also listed as
parameters in the cde-databases key. Requires the pipelines-deploy
command.
If the pipelines-sync-dbs command is written after the pipelines-deploy
event, the Pipelines logs will display the following error:
The pipelines-sync-dbs command cannot be defined in pipelines-deploy event.
It is available only in post-deploy, pr-merged and pr-closed events.
When the pipelines-sync-dbs command is written in post-deploy,
pr-merged and pr-closed events, but is written before
pipelines-deploy, the Pipelines logs display the following error
message:
The pipelines-sync-dbs command cannot be used before pipelines-deploy.
You can’t run the pipelines-deploy
command inside the build event.
Create, deploy, or delete a Cloud Platform CD environment, depending on the event it is executed within. The
pipelines-deploy command creates a Cloud Platform CD environment and
deploys the build artifact if executed in the post-deploy
event. The pipelines-deploy command deletes the corresponding
Cloud Platform CD environment when used in pr-merged or
pr-closed events. While this command can be executed in any
event of the build definition file, Acquia recommends using it in the
post-deploy event.
Note
If you remove a source branch from your external repository and then run
pipelines, the underlying Cloud Platform CD environment won’t be destroyed.
You will only experience failed Pipelines build jobs as the service can’t
find the source branch.
Provide information from the container or the build execution for your use
in other steps—for example, one item from a specific execution step whose
value will influence a future direction in your build process. You can run this
command from any section of your build definition file.
To view the contents of any metadata created using this key, run the
status command with the --format=json
option.
Usage
pipelines_metadata KEY VALUE [options]
where
[key] is the variable name you want to create for reporting
[value] is the value you want to set for your created variable
[options] are any additional options you need to specify
Do not use the = operator. Use the format -u[value] or
--url[value].
Alias
Arguments
-a
--app – Pipelines application id. Default value is set using
$PIPELINES_APPLICATION_ID
-d
--debug – Debug the network connection.
-h
--help – This help text
-j
--job-id – Pipelines job id. Default value is set using
$PIPELINES_JOB_ID
-t
--token – Temporary Pipelines auth token. Default value is set using
$PIPELINES_JOB_AUTH_TOKEN
pipelines-sync-dbs
Syncs the databases provided as parameters, provided they are also listed as
parameters in the cde-databases key. Requires the pipelines-deploy
command.
If the pipelines-sync-dbs command is written after the pipelines-deploy
event, the Pipelines logs will display the following error:
The pipelines-sync-dbs command cannot be defined in pipelines-deploy event.
It is available only in post-deploy, pr-merged and pr-closed events.
When the pipelines-sync-dbs command is written in post-deploy,
pr-merged and pr-closed events, but is written before
pipelines-deploy, the Pipelines logs display the following error
message:
The pipelines-sync-dbs command cannot be used before pipelines-deploy.