Skip to content

Instantly share code, notes, and snippets.

Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behavior
Error: Could not find or load main class hudson.remoting.jnlp.Main
Caused by: java.lang.ClassNotFoundException: hudson.remoting.jnlp.Main
Job error:
[INFO] [INFO] Running hudson.slaves.NodeProvisionerTest
wrapper script does not seem to be touching the log file in /home/jenkins/agent/workspace/release-jenkins-core_master@tmp/durable-39c125d0
(JENKINS-48300: if on an extremely laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400)
[Pipeline] }
Agent jnlp logs:
$: kubectl logs -f -n release -c jnlp jenkins-release-linux-wdtrf-bjg2v
Jenkins JCasc Configuration: https://git.io/Je3cO
Packaging Windows: https://git.io/Je3cP
@olblak
olblak / gist:76d87072f01a3b362f90b3dba135b765
Last active June 6, 2019 07:41
windows jenkins agent
Image publish: MicrosoftWindowsServer
Image offer: WindowsServer
Image Sku: 2012-R2-Datacenter
Init Script:
Set-ExecutionPolicy Unrestricted
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$jenkinsServerUrl = $args[0]
$vmName = $args[1]
$secret = $args[2]
Set-ExecutionPolicy Unrestricted
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$jenkinsServerUrl = $args[0]
$vmName = $args[1]
$secret = $args[2]
$jenkinsSlaveJarUrl = $jenkinsServerUrl + "jnlpJars/slave.jar"
$jnlpUrl=$jenkinsServerUrl + 'computer/' + $vmName + '/slave-agent.jnlp'
$baseDir = 'c:\azurecsdir'
exposecontroller:
config:
http: true
tls-acme: true
extravalues:
exposer: Ingress
domain: beta.jenkins.io
ingress-class: private-ingress
exposecontroller:
config:
http: true
tls-acme: true
extravalues:
exposer: Ingress
domain: beta.jenkins.io
ingress-class: private-ingress
#!/usr/bin/groovy
def cmd = "ls /tmp".execute()
println cmd.in.text
Step 39/49 : RUN mkdir /usr/java && curl -LS https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11-jdk_x64_linux_openj9_11.0.1_13.tar.gz | tar xzf - -C /usr/java && mv /usr/java/jdk*/* /usr/java && rmdir /usr/java/jdk*
---> Running in 91a9727bcc10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 9 0 9 0 0 60 0 --:--:-- --:--:-- --:--:-- 60
SEVERE: Timer task org.jenkinsci.plugins.jx.resources.BuildSyncRunListener$1@47d42105 failed
io.fabric8.kubernetes.client.KubernetesClientException: Operation: [list] for kind: [CustomResourceDefinition] with name: [null] in namespace: [null] failed.
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:62)
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:71)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:588)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:49)
at io.jenkins.x.client.kube.ClientHelper.pipelineActivityClient(ClientHelper.java:21)
at org.jenkinsci.plugins.jx.resources.BuildSyncRunListener.upsertBuild(BuildSyncRunListener.java:223)
at org.jenkinsci.plugins.jx.resources.BuildSyncRunListener.pollRun(BuildSyncRunListener.java:193)
at org.jenkinsci.plugins.jx.resources.BuildSyncRunListener.pollLoop(BuildSyncRunListener