JA
jankeromnes/test-before
test-before
Use init instead of before when the main intent is to trigger a prebuild and you previously relied on a single before without any init. Use before to extract common steps when both init and command are also present.
.gitpod.yml (this will no longer behave as described below)
tasks:
- before: |
echo `gp url` >> before.txt
command: |
echo `gp url` >> command.txtThis repo demonstrates the following
- A gitpod
beforetask is run as part of a prebuild even if there is noinittask - The
beforetask is run again in front of thecommandtask in the workspace - The workspace URL returned by
gp urlis different for the prebuild workspace.
How to test
- Open this repo in a gitpod workspace
before.txtcontains 2 lines - one with the URL of the prebuild workspace, one with the URL of the main workspacecommand.txtcontains the url of the main workspace
touch
touch
touch
touch
touch 31
touch 32
touch 33
touch 34
Hello
Hola
Guten Tag