Skip to content
Snippets Groups Projects

Feat gl cicd var scripts

Merged Eesaan Atluri requested to merge atlurie/hpc-factory:feat-gl-cicd-var-scripts into main
2 files
+ 8
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -35,11 +35,10 @@ def main():
@@ -35,11 +35,10 @@ def main():
help="Path to the CI vars file (default: ci-variables.yaml)",
help="Path to the CI vars file (default: ci-variables.yaml)",
)
)
parser.add_argument(
parser.add_argument(
"--project_id",
"--project_name",
type=int,
type=str,
default="",
required=True,
required=True,
help="Gitlab project ID to read variables from",
help="Gitlab project name with namespace",
)
)
parser.add_argument(
parser.add_argument(
"--sched_pipeline_id",
"--sched_pipeline_id",
@@ -51,7 +50,7 @@ def main():
@@ -51,7 +50,7 @@ def main():
args = parser.parse_args()
args = parser.parse_args()
gl = gitlab.Gitlab.from_config("uabrc", [args.config_file])
gl = gitlab.Gitlab.from_config("uabrc", [args.config_file])
project = gl.projects.get(args.project_id)
project = gl.projects.get(args.project_name)
# Fetch project or sched pipeline variables
# Fetch project or sched pipeline variables
if not args.sched_pipeline_id:
if not args.sched_pipeline_id:
Loading