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
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -23,7 +23,7 @@ def create_or_update_variable(project, var_dict):
@@ -23,7 +23,7 @@ def create_or_update_variable(project, var_dict):
all_vars = project.variables.list(get_all=True)
all_vars = project.variables.list(get_all=True)
for var in all_vars:
for var in all_vars:
if var.key == key and var.environment_scope == scope:
if var.key == key and var.environment_scope == scope:
p_variable = var.asdict()
p_variable = var
break
break
except gitlab.exceptions.GitlabGetError:
except gitlab.exceptions.GitlabGetError:
print("Variable not found")
print("Variable not found")
Loading