0

我想跳过建设者阶段。使用打包器时,如何跳过构建器并直接进入配置器或后处理器阶段?

4

1 回答 1

0

使用“沟通者”:“无”

{
  "builders": [
    {
      "type": "null",
      "communicator": "none"
    }
  ],
  "provisioners": [
    {
      "type": "shell-local",
      "inline": ["exit 2"]
    }
  ],
  "error-cleanup-provisioner": {
    "type": "shell-local",
    "inline": ["echo 'rubber ducky'> ducky.txt"]
  }
}
于 2020-12-28T22:17:26.527 回答