Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Loïc Gouarin
website
Commits
809bc474
Commit
809bc474
authored
Jun 12, 2019
by
Loïc Gouarin
Browse files
Merge branch 'dev-loic' into 'develop'
fix GITLAB_TOKEN See merge request
groupe-calcul/website!212
parents
43f26ec8
a4344b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
content/job_offers/add_job_offer.py
View file @
809bc474
...
...
@@ -630,8 +630,8 @@ def create_job_request(job_offer, debug):
try
:
# TODO: remove GITLAB_TOKEN variable from gitlab_config.py, revoke token and use the line below
# instead of os.gentenv()
#
gitlab_private_token = os.environ['GITLAB_
PRIVATE_
TOKEN']
gitlab_private_token
=
os
.
getenv
(
'GITLAB_PRIVATE_TOKEN'
,
GITLAB_TOKEN
)
gitlab_private_token
=
os
.
environ
[
'GITLAB_TOKEN'
]
#
gitlab_private_token = os.getenv('GITLAB_PRIVATE_TOKEN', GITLAB_TOKEN)
except
KeyError
:
print
(
"[ERROR] GITLAB_PRIVATE_TOKEN environment variable not set!"
,
file
=
sys
.
stderr
)
raise
...
...
content/job_offers/gitlab_config.py
View file @
809bc474
import
os
# Gitlab configuration
GITLAB_URL
=
"https://gitlab.math.unistra.fr"
GITLAB_TOKEN
=
os
.
environ
[
"GITLAB_TOKEN"
]
GITLAB_TARGET_ID
=
309
# groupe-calcul/website
GITLAB_TARGET_BRANCH
=
'develop'
GITLAB_SOURCE_ID
=
309
# groupe-calcul/website
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment