Read the repo list from the full URL. Change default to params.
This commit is contained in:
parent
ff2327518a
commit
bfbe01d614
|
@ -17,11 +17,10 @@ def action_code = actionURL.toURL().getText()
|
||||||
println "Action code: ${action_code}"
|
println "Action code: ${action_code}"
|
||||||
|
|
||||||
//locate the repos file
|
//locate the repos file
|
||||||
String repoURL = "https://code-repo.d4science.org/manuele.simi/gCubeActionExecutor/raw/branch/master/repos/${repo_list}"
|
println "Querying ${repo_list}"
|
||||||
println "Querying ${repoURL}"
|
|
||||||
|
|
||||||
//save the action code
|
//save the action code
|
||||||
def repo_content = repoURL.toURL().getText()
|
def repo_content = repo_list.toURL().getText()
|
||||||
def projects = parseProjectList(repo_content)
|
def projects = parseProjectList(repo_content)
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,17 +42,17 @@ pipeline {
|
||||||
parameters {
|
parameters {
|
||||||
|
|
||||||
string(name: 'repo_root',
|
string(name: 'repo_root',
|
||||||
defaultValue: 'https://code-repo.d4science.org/gCubeSystem/',
|
defaultValue: 'https://code-repo.d4science.org/TestActions/',
|
||||||
description: 'The root URL of the repositories')
|
description: 'The root URL of the repositories')
|
||||||
string(name: 'repo_list',
|
string(name: 'repo_list',
|
||||||
defaultValue: 'default_list.txt',
|
defaultValue: 'https://code-repo.d4science.org/manuele.simi/gCubeActionsFiles/raw/branch/master/repos/default_list.txt',
|
||||||
description: 'The file with the list of repositories to update')
|
description: 'The file with the list of repositories to update')
|
||||||
string(name: 'action_root',
|
string(name: 'action_root',
|
||||||
defaultValue: 'https://code-repo.d4science.org/gCubeCI/gCubeActionsFiles',
|
defaultValue: 'https://code-repo.d4science.org/manuele.simi/gCubeActionsFiles',
|
||||||
description: 'The root URL of the Bash fragment to execute.')
|
description: 'The root URL of the Bash fragment to execute.')
|
||||||
string(name: 'action_file',
|
string(name: 'action_file',
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'The file with the Bash fragment to execute.')
|
description: 'The relative path of the Bash fragment to execute.')
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue