A simple utility script to compile package and upload artifacts to cdap.
- Python3
- cdap
/bindirectory in the PATH
- Clone the repository
git clone https://github.com/psainics/cdap-auto-upload.git- Add full path to
main.pyscript 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-uploadwith the actual path:
alias cpu='/path/to/cdap-auto-upload/main.py'- Source the
.bash_profileto reflect the changes
source ~/.bash_profileTo update the script, pull the latest changes from the repository
cd /path/to/cdap-auto-upload
git pullCalling 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
SNAPSHOTversions 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.