{"_id":"573ed4bea233380e005db154","category":{"_id":"573ed4bea233380e005db14f","__v":0,"version":"573ed4bea233380e005db14d","project":"56b86cc286d2b0190070bcda","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-08T11:20:51.134Z","from_sync":false,"order":1,"slug":"tasks","title":"Tasks"},"githubsync":"","parentDoc":null,"project":"56b86cc286d2b0190070bcda","__v":0,"user":"56b86c990094520d006b3c33","version":{"_id":"573ed4bea233380e005db14d","__v":2,"project":"56b86cc286d2b0190070bcda","createdAt":"2016-05-20T09:11:26.847Z","releaseDate":"2016-05-20T09:11:26.847Z","categories":["573ed4bea233380e005db14e","573ed4bea233380e005db14f","573ed4bea233380e005db150","578bcf36bb7d810e00e01c05"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"master","version_clean":"0.3.0-0.4","version":"0.3-0.4"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-09T14:07:59.993Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"This task executes a configured command during the one or more configured events: AccompliEvents::PREPARE_RELEASE,\nAccompliEvents::INSTALL_RELEASE, AccompliEvents::DEPLOY_RELEASE and/or AccompliEvents::ROLLBACK_RELEASE.\n\nThe working directory for AccompliEvents::PREPARE_RELEASE during execution of the command is the workspace.\nFor all other events the directory of the release being installed or deployed is the working directory.\n\n## Configuration options\n\n| Name | Type | Default value | Description |\n|------|------|---------------|-------------|\n| events | string[] |  | The events to execute the command on. Valid values are 'accompli.prepare_release', 'accompli.install_release', 'accompli.deploy_release' and/or 'accompli.rollback_release'. |\n| command | string |  | The command to be executed. |\n| arguments | string[] |  | The arguments and options to be passed to the command upon execution. |\n\n## Event flow\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/8Z8BFnTXQ16Aq0p5I6BQ_ExecuteCommandTask.png\",\n        \"ExecuteCommandTask.png\",\n        \"884\",\n        \"924\",\n        \"#c59869\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"executecommandtask","type":"basic","title":"ExecuteCommandTask"}

ExecuteCommandTask


This task executes a configured command during the one or more configured events: AccompliEvents::PREPARE_RELEASE, AccompliEvents::INSTALL_RELEASE, AccompliEvents::DEPLOY_RELEASE and/or AccompliEvents::ROLLBACK_RELEASE. The working directory for AccompliEvents::PREPARE_RELEASE during execution of the command is the workspace. For all other events the directory of the release being installed or deployed is the working directory. ## Configuration options | Name | Type | Default value | Description | |------|------|---------------|-------------| | events | string[] | | The events to execute the command on. Valid values are 'accompli.prepare_release', 'accompli.install_release', 'accompli.deploy_release' and/or 'accompli.rollback_release'. | | command | string | | The command to be executed. | | arguments | string[] | | The arguments and options to be passed to the command upon execution. | ## Event flow [block:image] { "images": [ { "image": [ "https://files.readme.io/8Z8BFnTXQ16Aq0p5I6BQ_ExecuteCommandTask.png", "ExecuteCommandTask.png", "884", "924", "#c59869", "" ] } ] } [/block]