I’m testing a bitrise CLI.
But, on step of the amazon-s3-deploy, error occur.
The error message is “Missing required input: app_slug”.
How can I get “app_slug” and “build_slug” value?
In local you can set those e.g. as Secrets, or just set them as env vars before running the bitrise
CLI / bitrise run ...
If you’d have any questions just let us know!
Thank you.
I know where is env vars.
But I wanna know these value’s mean and where is these value in local.
In local you don’t have those values, as these are related to builds running on bitrise.io
That said, this step doesn’t depend on the actual values, so you can just set them to anything you like
On bitrise.io (https://devcenter.bitrise.io/faq/available-environment-variables/) the app_slug ($BITRISE_APP_URL
) is the ID of the project on bitrise.io, something like b92xxxxxxxxxxa46
which is always the same for every build of that bitrise.io project/app, while the build_slug
($BITRISE_BUILD_SLUG
) is a similar alpha-numerical ID which is unique for every build in the system.
The step itself uses these to ensure the uploaded URL is organized but also unique.
That said you can of course use the same values every time, but in that case the uploaded ipa will overwrite the previously uploaded one. If you specify a new build_slug every time then you can get a history of IPAs, the uploaded IPAs will not overwrite each other.
Also worth to note that the actual URL is controlled by the path_in_bucket
option of the step, which by default is set to bitrise_$BITRISE_APP_SLUG/${BITRISE_BUILD_TRIGGER_TIMESTAMP}_build_${BITRISE_BUILD_SLUG}
(https://github.com/bitrise-io/steps-amazon-s3-deploy/blob/706427b2927d9a8dffdfe341e086ae4f67041803/step.yml#L78), that’s why these (app slug and build slug) are required.
So, in short, feel free to set them to anything if you’re not running the build on bitrise.io, there’s no dependency to bitrise.io the step is just configured this way for convenience for those who run it on bitrise.io
If you’d have any questions just let me know!
Thank you for explanation.
Any time