Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yvlasov
Copy link

@yvlasov yvlasov commented Jan 10, 2017

No description provided.

@yvlasov yvlasov requested a review from jbrisbin January 10, 2017 14:42
@yvlasov yvlasov force-pushed the jenkins-persistant-home branch from 409bcf9 to 9a1a7f3 Compare January 10, 2017 14:45
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
Copy link
Contributor

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"
Copy link
Contributor

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,
Copy link
Contributor

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",
Copy link
Contributor

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
Copy link
Contributor

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",
Copy link
Contributor

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...

@yvlasov yvlasov force-pushed the jenkins-persistant-home branch 2 times, most recently from c23886c to 20780aa Compare January 13, 2017 11:39
@yvlasov
Copy link
Author

yvlasov commented Jan 13, 2017

@jbrisbin Hello thank you for comments. It looks like I've fixed issues you mentioned.
If you don't mind I will merge it to master on monday?
Thanks

@yvlasov yvlasov force-pushed the jenkins-persistant-home branch from 20780aa to 5af9d6b Compare January 13, 2017 11:55
@yvlasov yvlasov changed the title Jenkins persistant home support Jenkins persistent home support via "volumes-from" Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants