Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sandbox:create with sync return 2 json objects #188

Open
osapishchuk opened this issue Nov 12, 2020 · 1 comment
Open

sandbox:create with sync return 2 json objects #188

osapishchuk opened this issue Nov 12, 2020 · 1 comment

Comments

@osapishchuk
Copy link

Hi sfcc-ci team,

sfcc-ci sandbox:create --realm bdtw -s -j

returning 2 almost identical JSON objects (instead of one) and only time in milliseconds is different there. Example:

...finished (314646 ms). Sandbox id is ...
...finished (318858 ms). Sandbox id is ...

Because of this issue, commands (bellow) are not working, as SANDBOX_HOST now is 2 values in different rows with the same value:

SANDBOX=`sfcc-ci sandbox:create <a-realm> -s -j`
SANDBOX_HOST=`$SANDBOX | jq '.instance.host' -r`
sfcc-ci code:deploy <path/to/code.zip> -i $SANDBOX_HOST
sfcc-ci instance:upload <path/to/data.zip> -i $SANDBOX_HOST -s
sfcc-ci instance:import <data.zip> -i your-instance.demandware.net

Visual evidence:
image

Based on the slack discussion steps to reproduce is to use -s parameter.

There is a workaround for me to use in the Docker as following:
image
and to run the jobs after I just read the first row:
image

but that would be great to have this issue fixed as well :)

Regards,
Oleg

@osapishchuk
Copy link
Author

As a workaround @EvilJordan also suggested to use sfcc-ci sandbox:create --sync --json | jq -s -r '.[0]' while fix is not in place as of yet.

🌮 for that 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant