Skip to content
Snippets Groups Projects
Commit 3be5342a authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add if statement

parent ff4a7f44
No related branches found
No related tags found
1 merge request!503Docker and Web Services
......@@ -4,11 +4,22 @@ plugins {
rootProject.name = "nshmp-haz-v2"
/**
* Download default model, nshm-conus-2018.
*
* To download the model set environmnet variables:
* - GIT_NSHMP_USERNAME="The GitLab user name"
* - GIT_NSHMP_PASSWORD="The GitLab API token"
*/
git {
defaultAuthGroup "nshmp"
def user = System.getenv("GIT_NSHMP_USERNAME")
def pass = System.getenv("GIT_NSHMP_PASSWORD")
fetch("https://code.usgs.gov/ghsc/nshmp/nshm-conus-2018.git", {
name "nshmp-haz-dep--nshm-conus-2018"
tag "0.2.3"
})
if (user && pass) {
fetch("https://code.usgs.gov/ghsc/nshmp/nshm-conus-2018.git", {
name "nshmp-haz-dep--nshm-conus-2018"
tag "0.2.3"
})
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment