WARNING - THIS IS NOT WELL TESTED - USE AT YOUR OWN RISK!
This script is ment to cover basic usecase of backporting commits to sprint branch in Teradata Presto workflow. It mostly solves problems in optimistic scenario when no human intervention is needed during backport. It may slow down the process to achieve a goal of only pushing to sprint branch things that do pass Travis test flow.
It is recommended to run this script in screen
in order to avoid premature terminatation problems.
To use the script just run one of the following commands with working directory beeing presto repository in "clean" state (no uncommited work, no rebase nor cherry-pick in progress etc.).
speedlock.pl [commit/range to cherry-pick]
- run in local terminalscreen speedlock.pl [commit/range to cherry-pick]
- run in screen
Configuration is done directly in script by setting following variables
SPRINT_BRANCH
- sprint/release branch you want to commit work toTD_REMOTE
- your git repository remote name pointing to http://github.com/Teradata/presto remoteWORKER_REMOTE
- your git repository remote name that you want to use as Travis worker (your private for of presto is a nice candidate)WORKER_REPO
- github path to Travis workerALARM_COMMAND
- command that will be executed to let you know that something went wrong in the script execution
perl
>= 5.18ruby
(gem
) >= 2.3.1travis
client
$ gem install travis
$ travis login
WARNING - THIS IS NOT WELL TESTED - USE AT YOUR OWN RISK!
This script is ment to change version of presto in mvn configuration (pom.xml) of all modules. It may be used to create both snapshot and release by defining proper tag argument.
To use the script just run following command in presto repository.
change_version.sh [NewVersion] [NewTag]
- basic usage
change_version.sh 0.148-t.1-SNAPSHOT HEAD
- change version to SNAPSHOTchange_version.sh 0.148-t.1 0.148-t.1
- change version to release 0.148-t.1. Make sure that git tag0.148-t.1
is marked.