A simple utility script to compile package and upload artifacts to cdap.
- Python3
- cdap
/bin
directory in the PATH
- Clone the repository
git clone https://github.com/psainics/cdap-auto-upload.git
- Add full path to
main.py
script as an alias in your.bash_profile
- Choose a name for the alias (e.g., cpu).
- Add the following line, replacing
/path/to/cdap-auto-upload
with the actual path:
alias cpu='/path/to/cdap-auto-upload/main.py'
- Source the
.bash_profile
to reflect the changes
source ~/.bash_profile
To update the script, pull the latest changes from the repository
cd /path/to/cdap-auto-upload
git pull
Calling the alias from the root of a project will compile the package and upload the artifacts to cdap.
-
We use cached dependencies to speed up the build process. You must do a clean build if you have made changes to the dependencies.
-
Non
SNAPSHOT
versions of the plugins cannot be uploaded more than once.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.