|
| 1 | + |
| 2 | +=== Deploying with an immutable folder records the resolved snapshot path as the deployment's file_path |
| 3 | +>>> [CLI] bundle deploy |
| 4 | +Created internal_immutable_snapshots.immutable |
| 5 | +Created jobs.foo |
| 6 | +Files: 0 uploaded, 0 deleted |
| 7 | +Resources: 2 created, 0 changed, 0 deleted, 0 unchanged |
| 8 | + |
| 9 | +>>> MSYS_NO_PATHCONV=1 [CLI] api get /api/2.0/bundle/deployments/[DEPLOYMENT_ID] |
| 10 | +{ |
| 11 | + "workspace_info": { |
| 12 | + "root_path": "/Workspace/Users/[USERNAME]/.bundle/dms-immutable-folder-[UNIQUE_NAME]/default", |
| 13 | + "file_path": "/Workspace/Users/[UUID]/.snapshots/[SNAPSHOT_HASH]/[SNAPSHOT_HASH]/files" |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +=== A new snapshot moves file_path, which is then updated on the deployment |
| 18 | +>>> [CLI] bundle deploy |
| 19 | +Recreated internal_immutable_snapshots.immutable |
| 20 | +Updated jobs.foo |
| 21 | +Files: 0 uploaded, 0 deleted |
| 22 | +Resources: 1 created, 1 changed, 1 deleted, 0 unchanged |
| 23 | + |
| 24 | +>>> MSYS_NO_PATHCONV=1 [CLI] api get /api/2.0/bundle/deployments/[DEPLOYMENT_ID] |
| 25 | +{ |
| 26 | + "workspace_info": { |
| 27 | + "root_path": "/Workspace/Users/[USERNAME]/.bundle/dms-immutable-folder-[UNIQUE_NAME]/default", |
| 28 | + "file_path": "/Workspace/Users/[UUID]/.snapshots/[SNAPSHOT_HASH]/[SNAPSHOT_HASH]/files" |
| 29 | + } |
| 30 | +} |
| 31 | + |
| 32 | +=== An unchanged snapshot keeps the recorded file_path |
| 33 | +>>> [CLI] bundle deploy |
| 34 | +Files: 0 uploaded, 0 deleted |
| 35 | +Resources: 0 created, 0 changed, 0 deleted, 2 unchanged |
| 36 | + |
| 37 | +>>> MSYS_NO_PATHCONV=1 [CLI] api get /api/2.0/bundle/deployments/[DEPLOYMENT_ID] |
| 38 | +{ |
| 39 | + "workspace_info": { |
| 40 | + "root_path": "/Workspace/Users/[USERNAME]/.bundle/dms-immutable-folder-[UNIQUE_NAME]/default", |
| 41 | + "file_path": "/Workspace/Users/[UUID]/.snapshots/[SNAPSHOT_HASH]/[SNAPSHOT_HASH]/files" |
| 42 | + } |
| 43 | +} |
0 commit comments