-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkins persistent home support via "volumes-from" #8
base: master
Are you sure you want to change the base?
Conversation
409bcf9
to
9a1a7f3
Compare
sed -i "s#\${JENKINS_CONFIG_REPO}#$JENKINS_CONFIG_REPO#g" $JENKINS_HOME/scm-sync-configuration.xml | ||
cp -R $MESOS_SANDBOX/.ssh $JENKINS_HOME/.ssh | ||
else | ||
if [ ! -f $JENKINS_HOME/.USE_PERSISTANT_JENKINS_HOME ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be cut-and-paste but a function that can be called. The if/else is a bit confusing as well. Why not use elif
?
[ | ||
"hostname", | ||
"CLUSTER", | ||
"10.0.24.35" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is really a template file, hard references here should be replaced with {{host_ip}}
or similar.
"portMappings": [ | ||
{ | ||
"containerPort": 8080, | ||
"hostPort": 31325, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here... ^^^
} | ||
}, | ||
"env": { | ||
"JENKINS_CONFIG_REPO": "jbrisbin/jenkins-mesos-softlayer", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here... ^^^
|
||
sed -i "s#\${JENKINS_CONFIG_REPO}#$JENKINS_CONFIG_REPO#g" $JENKINS_HOME/scm-sync-configuration.xml | ||
cp -R $MESOS_SANDBOX/.ssh $JENKINS_HOME/.ssh | ||
if [ "x$USE_PERSISTANT_JENKINS_HOME" == "x" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The correct English spelling is "PERSISTENT".
], | ||
"fetch": [ | ||
{ | ||
"uri": "file:///home/jenkins/ssh.tar.gz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Achille's Heel of this whole thing, IMO. I wish there was a way around this...
c23886c
to
20780aa
Compare
@jbrisbin Hello thank you for comments. It looks like I've fixed issues you mentioned. |
20780aa
to
5af9d6b
Compare
No description provided.