forked from Dataman-Cloud/jenkins-on-mesos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarathon.json
24 lines (24 loc) · 867 Bytes
/
marathon.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"id": "jenkins",
"instances": 1,
"mem": 1000,
"env": {
"JAVA_OPTS": "-Xmx300m",
"SCM_SYNC_GIT": "<SCM_SYNC_GIT>"
},
"uris": [
"http://get.dataman.io/packages/jenkins-on-mesos.tgz"
],
"user": "<USER>",
"cmd": "export HOME=$(pwd) && git config --global user.name `whoami` && git config --global user.email `whoami`@$HOST && git clone $SCM_SYNC_GIT tmp && cp -r tmp/* jenkins-on-mesos && rm -rf tmp && cd jenkins-on-mesos && sed -i -e s#GIT_REPO_URL#$SCM_SYNC_GIT# scm-sync-configuration.xml && export JENKINS_HOME=$(pwd) && export JENKINS_URL=http://$MESOS_HOSTNAME:$PORT0 && java $JAVA_OPTS -jar jenkins.war --httpPort=$PORT0",
"healthChecks": [
{
"protocol": "HTTP",
"portIndex": 0,
"path": "/",
"gracePeriodSeconds": 30,
"intervalSeconds": 20,
"maxConsecutiveFailures": 3
}
]
}