Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
ca797539
Commit
ca797539
authored
Dec 16, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change spelling from 'abby' to 'abbey'.
parent
e670f3f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
util/jenkins/monitor_repos.py
+1
-1
util/jenkins/stage_release.py
+6
-6
No files found.
util/jenkins/monitor_repos.py
View file @
ca797539
...
...
@@ -79,6 +79,6 @@ if __name__ == "__main__":
# Check for new rc candidates.
for
rc
in
candidates_since
(
Repo
(
repo
),
last_check
):
# Notify stage-release to build for the new repo.
stage_release
(
config
[
'abb
y_url'
],
config
[
'abb
y_token'
],
repo
,
rc
)
stage_release
(
config
[
'abb
ey_url'
],
config
[
'abbe
y_token'
],
repo
,
rc
)
pickle
.
dump
(
data
,
open
(
args
.
pickle
,
'w'
))
util/jenkins/stage_release.py
View file @
ca797539
...
...
@@ -41,8 +41,8 @@ deployments:
- stage
# A jenkins URL to post requests for building AMIs
abby_url: "http://...."
abby_token: "API_TOKEN"
abb
e
y_url: "http://...."
abb
e
y_token: "API_TOKEN"
---
"""
import
argparse
...
...
@@ -168,7 +168,7 @@ def prepare_release(args):
release
[
'plays'
]
=
all_plays
release_coll
.
insert
(
release
)
# All plays that need new AMIs have been updated.
notify_abb
y
(
config
[
'abby_url'
],
config
[
'abb
y_token'
],
args
.
deployment
,
all_plays
,
args
.
release_id
)
notify_abb
ey
(
config
[
'abbey_url'
],
config
[
'abbe
y_token'
],
args
.
deployment
,
all_plays
,
args
.
release_id
)
def
ami_for
(
db
,
env
,
deployment
,
play
,
configuration
,
configuration_secure
,
ansible_vars
):
...
...
@@ -185,7 +185,7 @@ def ami_for(db, env, deployment, play, configuration,
return
db
.
amis
.
find_one
(
ami_signature
)
import
requests
def
notify_abb
y
(
abby_url
,
abb
y_token
,
deployment
,
all_plays
,
release_id
):
def
notify_abb
ey
(
abbey_url
,
abbe
y_token
,
deployment
,
all_plays
,
release_id
):
for
play_name
,
play
in
all_plays
.
items
():
for
env
,
ami
in
play
[
'amis'
]
.
items
():
log
.
info
(
"{}:{}"
.
format
(
env
,
ami
))
...
...
@@ -199,8 +199,8 @@ def notify_abby(abby_url, abby_token, deployment, all_plays, release_id):
build_params
=
{
'parameter'
:
params
}
log
.
info
(
"Need ami for {}"
.
format
(
pformat
(
build_params
)))
r
=
requests
.
post
(
abby_url
,
data
=
{
"token"
:
abby_token
},
r
=
requests
.
post
(
abb
e
y_url
,
data
=
{
"token"
:
abb
e
y_token
},
params
=
{
"json"
:
json
.
dumps
(
build_params
)})
log
.
info
(
"Sent request got {}"
.
format
(
r
))
...
...
Write
Preview
Markdown
is supported
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