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
de2d239b
Commit
de2d239b
authored
Feb 16, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPS-1327 Allow User to specify the lifetime of the sandbox when creating
parent
d2136811
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
util/jenkins/ansible-provision.sh
+7
-1
No files found.
util/jenkins/ansible-provision.sh
View file @
de2d239b
...
...
@@ -37,7 +37,13 @@ run_ansible() {
}
# This DATE_TIME will be used as instance launch time tag
TERMINATION_DATE_TIME
=
`
date +
"%m-%d-%Y %T"
--date
=
"-7 days ago"
`
if
[[
!
-n
${
sandbox_life
//[0-9]/
}
]]
&&
[[
${
sandbox_life
}
-le
30
]]
;
then
TERMINATION_DATE_TIME
=
`
date +
"%m-%d-%Y %T"
--date
"
${
sandbox_life
=7
}
days"
`
else
echo
"Please enter the valid value for the sandbox_life(between 1 to 30)"
exit
1
fi
if
[[
-z
$BUILD_USER
]]
;
then
BUILD_USER
=
jenkins
...
...
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