1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-22 00:26:03 +00:00

Merge pull request #168 from piotr-faba-ardigen/add_bi_config

Fix bi config
This commit is contained in:
piotr-faba-ardigen 2020-07-07 14:56:43 +02:00 committed by GitHub
commit ba24f1a1c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,17 +4,11 @@ params{
config_profile_url = 'https://www.boehringer-ingelheim.com/'
}
params.globalConfig = set_global_config()
def set_global_config() {
def config = System.getenv('NXF_GLOBAL_CONFIG')
if(config == null)
{
def errorMessage = "WARNING: For bi.config requires NXF_GLOBAL_CONFIG env var to be set. Point it to global.config file if you want to use this profile."
System.err.println(errorMessage)
}else{
includeConfig config
}
return config
params.globalConfig = System.getenv('NXF_GLOBAL_CONFIG')
if(params.globalConfig == null)
{
def errorMessage = "WARNING: For bi.config requires NXF_GLOBAL_CONFIG env var to be set. Point it to global.config file if you want to use this profile."
System.err.println(errorMessage)
}else{
includeConfig params.globalConfig
}