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
edx
configuration
Commits
214d22f1
Commit
214d22f1
authored
Mar 03, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #833 from edx/feanil/tag_amis
Feanil/tag amis
parents
1b7067c1
c1fad324
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
util/jenkins/stage_release.py
+1
-1
util/vpc-tools/abbey.py
+10
-2
No files found.
util/jenkins/stage_release.py
View file @
214d22f1
...
...
@@ -193,7 +193,7 @@ def notify_abbey(config, deployment, all_plays, release_id,
params
[
'play'
]
=
play_name
params
[
'deployment'
]
=
deployment
params
[
'environment'
]
=
env
params
[
'
var
s'
]
=
yaml
.
safe_dump
(
play
[
'vars'
],
default_flow_style
=
False
)
params
[
'
ref
s'
]
=
yaml
.
safe_dump
(
play
[
'vars'
],
default_flow_style
=
False
)
params
[
'release_id'
]
=
release_id
params
[
'mongo_uri'
]
=
mongo_uri
params
[
'configuration'
]
=
configuration_ref
...
...
util/vpc-tools/abbey.py
View file @
214d22f1
...
...
@@ -517,12 +517,20 @@ def create_ami(instance_id, name, description):
'no_reboot'
:
True
}
image_id
=
ec2
.
create_image
(
**
params
)
for
_
in
xrange
(
AMI_TIMEOUT
):
try
:
img
=
ec2
.
get_image
(
image_id
)
if
img
.
state
==
'available'
:
break
img
.
add_tag
(
"environment"
,
args
.
environment
)
img
.
add_tag
(
"deployment"
,
args
.
deployment
)
img
.
add_tag
(
"play"
,
args
.
play
)
img
.
add_tag
(
"configuration_ref"
,
args
.
configuration_version
)
img
.
add_tag
(
"configuration_secure_ref"
,
args
.
configuration_secure_version
)
img
.
add_tag
(
"configuration_secure_repo"
,
args
.
configuration_secure_repo
)
img
.
add_tag
(
"build_id"
,
args
.
jenkins_build
)
for
repo
,
ref
in
git_refs
.
items
():
key
=
"vars:{}"
.
format
(
repo
)
img
.
add_tag
(
key
,
ref
)
else
:
time
.
sleep
(
1
)
except
EC2ResponseError
as
e
:
...
...
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