-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d57fe0
commit 7104055
Showing
1 changed file
with
10 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,33 +33,27 @@ pipeline { | |
""" | ||
} | ||
} | ||
stage('Clone Zephyr') { | ||
stage('Prepare workspace') { | ||
steps { | ||
sh """ | ||
git clone -b ${zephyr_version} [email protected]:C2SM/zephyr.git | ||
mkdir -p ${WORKSPACE}/extpar | ||
mkdir -p ${WORKSPACE}/icontools | ||
""" | ||
} | ||
} | ||
stage('Setup Python Environment') { | ||
stage('Generate ICON grid') { | ||
steps { | ||
sh """ | ||
python3 -m venv zephyr_venv | ||
source zephyr_venv/bin/activate | ||
pip install -r zephyr/tools/requirements/requirements.txt | ||
cd zephyr | ||
pip install -e . | ||
cd ${WORKSPACE}/icontools | ||
echo "Generating ICON grid" | ||
""" | ||
} | ||
} | ||
stage('Process Data') { | ||
stage('Generate external parameters') { | ||
steps { | ||
script { | ||
env.VERSION = readFile('VERSION').trim() | ||
} | ||
sh """ | ||
source zephyr_venv/bin/activate | ||
cd zephyr/run | ||
python launch_zephyr.py --json_path=${WORKSPACE}/config.json --output_directory=${WORKSPACE}/output/data --github_issue_id=${ghprbPullId} --zephyr_request_version=${VERSION} | ||
sh """ | ||
cd ${WORKSPACE}/extpar | ||
echo "Generating external parameters" | ||
""" | ||
} | ||
} | ||
|