Skip to content

Instantly share code, notes, and snippets.

@aidenkeating
Created September 29, 2017 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aidenkeating/66e4ac393a81407b809fe993a7b2e1e3 to your computer and use it in GitHub Desktop.
Save aidenkeating/66e4ac393a81407b809fe993a7b2e1e3 to your computer and use it in GitHub Desktop.
Contents of a ConfigMap that can do Android builds
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
<inheritFrom></inheritFrom>
<name>android</name>
<namespace></namespace>
<privileged>false</privileged>
<alwaysPullImage>false</alwaysPullImage>
<instanceCap>3</instanceCap>
<slaveConnectTimeout>100</slaveConnectTimeout>
<idleMinutes>3</idleMinutes>
<label>android</label>
<nodeSelector></nodeSelector>
<nodeUsageMode>NORMAL</nodeUsageMode>
<customWorkspaceVolumeEnabled>false</customWorkspaceVolumeEnabled>
<workspaceVolumeclass="org.csanchez.jenkins.plugins.kubernetes.volumes.workspace.EmptyDirWorkspaceVolume">
<memory>false</memory>
</workspaceVolume>
<volumes>
<org.csanchez.jenkins.plugins.kubernetes.volumes.PersistentVolumeClaim>
<mountPath>/opt/android-sdk-linux</mountPath>
<claimName>android-sdk</claimName>
<readOnly>true</readOnly>
</org.csanchez.jenkins.plugins.kubernetes.volumes.PersistentVolumeClaim>
</volumes>
<containers>
<org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
<name>jnlp</name>
<image>docker.io/feedhenry/digger-node6-android-slave-image</image>
<privileged>false</privileged>
<alwaysPullImage>true</alwaysPullImage>
<workingDir>/tmp</workingDir>
<command></command>
<args>${computer.jnlpmac} ${computer.name}</args>
<ttyEnabled>true</ttyEnabled>
<resourceRequestCpu></resourceRequestCpu>
<resourceRequestMemory></resourceRequestMemory>
<resourceLimitCpu></resourceLimitCpu>
<resourceLimitMemory></resourceLimitMemory>
<envVars/>
<ports/>
<livenessProbe>
<execArgs></execArgs>
<timeoutSeconds>0</timeoutSeconds>
<initialDelaySeconds>0</initialDelaySeconds>
<failureThreshold>0</failureThreshold>
<periodSeconds>0</periodSeconds>
<successThreshold>0</successThreshold>
</livenessProbe>
</org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
</containers>
<envVars/>
<annotations/>
<imagePullSecrets/>
</org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment