Skip to content

Commit

Permalink
Change Jenkins JVM's io.tmpdir
Browse files Browse the repository at this point in the history
* Addresses plus3it#33
  • Loading branch information
ferricoxide committed Nov 12, 2018
1 parent 98f576b commit 272206e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Templates/make_jenkins_EC2-Agent-Linux-autoscale.tmplt.json
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,9 @@
"\n",
"[Service]\n",
"ExecStartPre=/bin/sleep 15\n",
"ExecStart=/bin/java -jar ",
"ExecStart=/bin/java -Djava.io.tmpdir=",
{ "Ref": "AppVolumeMountPath" },
"/tmp -jar ",
{ "Ref": "AppVolumeMountPath" },
"/agent.jar -jnlpUrl https://",
{ "Ref": "JenkinsMaster" },
Expand All @@ -1049,6 +1051,18 @@
}
},
"commands": {
"0-create-jna-tmp": {
"command": {
"Fn::Join": [
"",
[
"install -d -m 1777 -o jenkins -g jenkins ",
{ "Ref": "AppVolumeMountPath" },
"/tmp"
]
]
}
},
"1-systemd-reload": {
"command": "systemctl daemon-reload"
},
Expand Down

0 comments on commit 272206e

Please sign in to comment.