-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from WorldCereal/user-preinstall-jenkins
Enable jenkins pre-install script
- Loading branch information
Showing
3 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Install git | ||
dnf install git -y | ||
|
||
# # Install openeo-gfmap and presto-worldcereal | ||
# dir=$(pwd) | ||
# GFMAP_URL="https://github.com/Open-EO/openeo-gfmap.git" | ||
# PRESTO_URL="https://github.com/WorldCereal/presto-worldcereal.git" | ||
|
||
# su - jenkins -c "cd $dir && \ | ||
# source venv310/bin/activate && \ | ||
# git clone $GFMAP_URL && \ | ||
# cd openeo-gfmap || { echo 'Directory not found! Exiting...'; exit 1; } && \ | ||
# pip install . && \ | ||
# cd .. | ||
# git clone -b croptype $PRESTO_URL && \ | ||
# cd presto-worldcereal || { echo 'Directory not found! Exiting...'; exit 1; } && \ | ||
# pip install . | ||
# " | ||
|
||
# For now only presto-worldcereal as gfmap is up to date on pypi | ||
dir=$(pwd) | ||
|
||
su - jenkins -c "cd $dir && \ | ||
source venv310/bin/activate && \ | ||
pip install git+https://github.com/WorldCereal/presto-worldcereal.git@croptype | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters