Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
65
Issue boards
Milestones
Wiki
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
hpc-factory
Merge requests
!196
Feat gl cicd var scripts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat gl cicd var scripts
atlurie/hpc-factory:feat-gl-cicd-var-scripts
into
main
Overview
0
Commits
18
Pipelines
0
Changes
5
Merged
Eesaan Atluri
requested to merge
atlurie/hpc-factory:feat-gl-cicd-var-scripts
into
main
1 month ago
Overview
0
Commits
18
Pipelines
0
Changes
2
Expand
Closes
#232 (closed)
Edited
1 month ago
by
Eesaan Atluri
👍
1
👎
0
Merge request reports
Viewing commit
3e01c15a
Prev
Next
Show latest version
2 files
+
8
−
9
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
3e01c15a
Use project name instead of ID for input
· 3e01c15a
Eesaan Atluri
authored
1 month ago
scripts/gitlab-ci-vars-reader.py
+
4
−
5
Options
@@ -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