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}"
|
||||
|
||||
//locate the repos file
|
||||
String repoURL = "https://code-repo.d4science.org/manuele.simi/gCubeActionExecutor/raw/branch/master/repos/${repo_list}"
|
||||
println "Querying ${repoURL}"
|
||||
println "Querying ${repo_list}"
|
||||
|
||||
//save the action code
|
||||
def repo_content = repoURL.toURL().getText()
|
||||
def repo_content = repo_list.toURL().getText()
|
||||
def projects = parseProjectList(repo_content)
|
||||
|
||||
|
||||
|
@ -43,17 +42,17 @@ pipeline {
|
|||
parameters {
|
||||
|
||||
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')
|
||||
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')
|
||||
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.')
|
||||
string(name: 'action_file',
|
||||
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