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
e670f3f4
Commit
e670f3f4
authored
Dec 13, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass release id to abby.
parent
35a7fa59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util/jenkins/stage_release.py
+3
-2
No files found.
util/jenkins/stage_release.py
View file @
e670f3f4
...
...
@@ -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_abby
(
config
[
'abby_url'
],
config
[
'abby_token'
],
args
.
deployment
,
all_plays
)
notify_abby
(
config
[
'abby_url'
],
config
[
'abby_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_abby
(
abby_url
,
abby_token
,
deployment
,
all_plays
):
def
notify_abby
(
abby_url
,
abby_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
))
...
...
@@ -195,6 +195,7 @@ def notify_abby(abby_url, abby_token, deployment, all_plays):
params
.
append
({
'name'
:
'deployment'
,
'value'
:
deployment
})
params
.
append
({
'name'
:
'environment'
,
'value'
:
env
})
params
.
append
({
'name'
:
'vars'
,
'value'
:
json
.
dumps
(
play
[
'vars'
])})
params
.
append
({
'name'
:
'release_id'
,
'value'
:
release_id
})
build_params
=
{
'parameter'
:
params
}
log
.
info
(
"Need ami for {}"
.
format
(
pformat
(
build_params
)))
...
...
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