Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Last active March 30, 2020 22:34
Show Gist options
  • Select an option

  • Save bharatmicrosystems/a6cf5ff493bf0195bb1532bc6aa1ea4a to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/a6cf5ff493bf0195bb1532bc6aa1ea4a to your computer and use it in GitHub Desktop.
<?xml version='1.1' encoding='UTF-8'?>
<hudson>
<disabledAdministrativeMonitors/>
<version>2.217</version>
<installStateName>RUNNING</installStateName>
<numExecutors>0</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
<denyAnonymousReadAccess>true</denyAnonymousReadAccess>
</authorizationStrategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>true</disableSignup>
<enableCaptcha>false</enableCaptcha>
</securityRealm>
<disableRememberMe>false</disableRememberMe>
<projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
<workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}</workspaceDir>
<buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
<jdks/>
<viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
<myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
<clouds>
+ <org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud plugin="kubernetes@1.23.1">
+ <name>kubernetes</name>
+ <defaultsProviderTemplate></defaultsProviderTemplate>
+ <templates>
+ <org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
+ <inheritFrom></inheritFrom>
+ <name>jenkins-slave</name>
+ <namespace></namespace>
+ <privileged>false</privileged>
+ <supplementalGroups></supplementalGroups>
+ <capOnlyOnAlivePods>false</capOnlyOnAlivePods>
+ <alwaysPullImage>false</alwaysPullImage>
+ <instanceCap>2147483647</instanceCap>
+ <slaveConnectTimeout>100</slaveConnectTimeout>
+ <idleMinutes>0</idleMinutes>
+ <activeDeadlineSeconds>0</activeDeadlineSeconds>
+ <label>jenkins-slave</label>
+ <nodeSelector></nodeSelector>
+ <nodeUsageMode>NORMAL</nodeUsageMode>
+ <hostNetwork>false</hostNetwork>
+ <workspaceVolume class="org.csanchez.jenkins.plugins.kubernetes.volumes.workspace.EmptyDirWorkspaceVolume">
+ <memory>false</memory>
+ </workspaceVolume>
+ <volumes>
+ <org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume>
+ <mountPath>/var/run/docker.sock</mountPath>
+ <hostPath>/var/run/docker.sock</hostPath>
+ </org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume>
+ <org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume>
+ <mountPath>/root/.docker</mountPath>
+ <hostPath>/root/.docker</hostPath>
+ </org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume>
+ </volumes>
+ <containers>
+ <org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
+ <name>jnlp</name>
+ <image>[your-docker-registry]/jenkins-slave</image>
+ <privileged>true</privileged>
+ <alwaysPullImage>true</alwaysPullImage>
+ <workingDir>/home/jenkins/agent</workingDir>
+ <command></command>
+ <args></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/>
+ <nodeProperties/>
+ <yamlMergeStrategy class="org.csanchez.jenkins.plugins.kubernetes.pod.yaml.Overrides"/>
+ <showRawYaml>true</showRawYaml>
+ <podRetention class="org.csanchez.jenkins.plugins.kubernetes.pod.retention.Default"/>
+ </org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
+ </templates>
+ <serverUrl>[your-api-server-url]/serverUrl>
+ <skipTlsVerify>true</skipTlsVerify>
+ <addMasterProxyEnvVars>false</addMasterProxyEnvVars>
+ <capOnlyOnAlivePods>false</capOnlyOnAlivePods>
+ <directConnection>false</directConnection>
+ <jenkinsUrl>http://jenkins-master:8080</jenkinsUrl>
+ <jenkinsTunnel>jenkins-master:50000</jenkinsTunnel>
+ <containerCap>10</containerCap>
+ <retentionTimeout>5</retentionTimeout>
+ <connectTimeout>5</connectTimeout>
+ <readTimeout>15</readTimeout>
+ <podLabels>
+ <org.csanchez.jenkins.plugins.kubernetes.PodLabel>
+ <key>jenkins</key>
+ <value>slave</value>
+ </org.csanchez.jenkins.plugins.kubernetes.PodLabel>
+ </podLabels>
+ <usageRestricted>false</usageRestricted>
+ <maxRequestsPerHost>32</maxRequestsPerHost>
+ <waitForPodSec>600</waitForPodSec>
+ <podRetention class="org.csanchez.jenkins.plugins.kubernetes.pod.retention.Never"/>
+ </org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud>
</clouds>
<scmCheckoutRetryCount>0</scmCheckoutRetryCount>
<views>...</views>
<primaryView>all</primaryView>
<slaveAgentPort>50000</slaveAgentPort>
<label></label>
<crumbIssuer class="hudson.security.csrf.DefaultCrumbIssuer">
<excludeClientIPFromCrumb>false</excludeClientIPFromCrumb>
</crumbIssuer>
<nodeProperties/>
<globalNodeProperties/>
</hudson>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment