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
cd9892d2
Commit
cd9892d2
authored
Mar 31, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add checks for all required arguments.
parent
297d99f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
9 deletions
+45
-9
util/jenkins/build-ami.sh
+45
-9
No files found.
util/jenkins/build-ami.sh
View file @
cd9892d2
#!/bin/bash -x
# This script is meant to be
sourced from elswhere(jenkins)
and expects the
# This script is meant to be
run from jenkins
and expects the
# following variables to be set:
# - BUILD_ID - set by jenkins, Unique ID of build
# - BUILD_NUMBER - set by jenkins, Build number
# - refs - repo revisions to pass to abbey
# - vars - other vars to pass to abbey
# - deployment
# - environment
# - base_ami
# - BUILD_ID
# - BUILD_NUMBER
# - deployment - edx, edge, etc
# - environment - stage,prod, etc
# - play - forum, edxapp, xqueue, etc
# - base_ami - Optional AMI to use as base AMI for abby instance
# - configuration - the version of the configuration repo to use
# - configuration_secure - the version of the secure repo to use
# - jenkins_admin_ec2_key - location of the ec2 key to pass to abbey
# - jenkins_admin_configuration_secure_repo - the git repo to use for secure vars
# - use_blessed - whether or not to use blessed AMIs
if
[[
"
$play
"
==
""
]]
;
then
echo
"No Play Specified. Nothing to Do."
exit
0
if
[[
-z
"
$BUILD_ID
"
]]
;
then
echo
"BUILD_ID not specified."
exit
-1
fi
if
[[
-z
"
$BUILD_NUMBER
"
]]
;
then
echo
"BUILD_NUMBER not specified."
exit
-1
fi
if
[[
-z
"
$refs
"
]]
;
then
echo
"refs not specified."
exit
-1
fi
if
[[
-z
"
$deployment
"
]]
;
then
echo
"deployment not specified."
exit
-1
fi
if
[[
-z
"
$environment
"
]]
;
then
echo
"environment not specified."
exit
-1
fi
if
[[
-z
"
$play
"
]]
;
then
echo
"play not specified."
exit
-1
fi
if
[[
-z
"
$jenkins_admin_ec2_key
"
]]
;
then
echo
"jenkins_admin_ec2_key not specified."
exit
-1
fi
if
[[
-z
"
$jenkins_admin_configuration_secure_repo
"
]]
;
then
echo
"jenkins_admin_configuration_secure_repo not specified."
exit
-1
fi
export
PYTHONUNBUFFERED
=
1
...
...
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