Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
68
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
1
Expand
Closes
#232 (closed)
Edited
1 month ago
by
Eesaan Atluri
👍
1
👎
0
Merge request reports
Viewing commit
ad4ad4b1
Prev
Next
Show latest version
1 file
+
20
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ad4ad4b1
Add Readme file for utility scripts
· ad4ad4b1
Eesaan Atluri
authored
1 month ago
scripts/README.md
0 → 100644
+
20
−
0
Options
**Prerequisites**
python -m venv ~/venvs/gitlab
source ~/venvs/gitlab/bin/activate
pip install -r requirements
**Clone the repo**
git clone -b feat-gl-cicd-var-scripts --single-branch https://gitlab.rc.uab.edu/atlurie/hpc-factory.git tmp-hpc-factory
cd tmp-hpc-factory/scripts
mv gitlab.ini.example gitlab.ini
Make changes to the gitlab.ini as you require.
[
Create a personal access token
](
https://docs.gitlab.com/user/profile/personal_access_tokens/
)
via the gitlab UI and copy it to the private_token field in gitlab.ini file
**Usage**
> Create an empty schedule pipeline before you try this out.
```
python3 gitlab-ci-vars-reader.py --config_file gitlab.ini --project_id <PROJECT_ID> --sched_pipeline_id <PIPELINE_ID> --var_file ci-variables.json
python3 gitlab-ci-vars-updater.py --config_file gitlab.ini --project_id <PROJECT_ID> --sched_pipeline_id <NEW-PIPELINE_ID> --var_file ci-variables.json
```
Loading