- Run
pip install -r requirements.txt. - Set your script username and password via environment variables. NOTE: If your password contains special characters,
they will most likely need to be escaped when adding them as environment variables.
- On Windows via cmd (do NOT use Powershell):
set SCRIPT_USERNAME=<username> (no quotes) set SCRIPT_PASSWORD=<password> (no quotes)- On MacOS/Linux or Windows via git-bash:
export SCRIPT_USERNAME="<username>" export SCRIPT_PASSWORD="<password>" - Create a YAML file based on the supplied example-run_batch.yml or example-generate_script.yml.
- Modify the
bitbucketandjenkinskeys to suit your scenario.
- Add project operations list items to the
project-operationskey. Available project operations can be found in run_batch.py by searching for__project_ops__. - Run
python run_batch.py -f <yaml-file>
- Modify the
inclusionsorexclusionskeys to suit your scenario. If both inclusions and exclusions are provided, only the inclusions will be used. - Add operations list items to the
operationskey. Available project operations can be found in run_batch.py by searching for__ops__. - Run
python run_batch.py -f <yaml-file>
- Modify the
inclusionsorexclusionskeys to suit your scenario. If both inclusions and exclusions are provided, only the inclusions will be used. - Add a list item for each command to generate under the
commandskey. - Run:
- Windows via cmd (do NOT use Powershell):
python generate_script.py -f <yaml-file> > script.bat - MacOS/Linux or Windows via git-bash:
python generate_script.py -f <yaml-file> > script.sh && chmod +x script.sh
- Windows via cmd (do NOT use Powershell):
- Run the generated script:
- Windows:
script.bat - MacOS/Linux or Windows via git-bash:
./script.sh
- Windows: