mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-25 17:29:55 +00:00
Merge pull request #168 from piotr-faba-ardigen/add_bi_config
Fix bi config
This commit is contained in:
commit
ba24f1a1c8
1 changed files with 7 additions and 13 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue