JENKINS-65315: SubmoduleOption: resolve env vars in reference path #1556
ci.jenkins.io / Tests / linux-21 / Build (linux-21)
failed
Jul 4, 2024 in 0s
failed: 4, skipped: 35, passed: 5058
Send us feedback
Details
hudson.plugins.git.extensions.impl.SubmoduleOptionDepthTest.submoduleUpdateShouldUseValidShallowDepth[depth: configured=0, used=1]
Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
Stack trace
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
at jenkins.model.Jenkins.get(Jenkins.java:819)
at hudson.plugins.git.util.GitUtils.workspaceToNode(GitUtils.java:99)
at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:188)
at hudson.plugins.git.extensions.impl.SubmoduleOptionDepthTest.submoduleUpdateShouldUseValidShallowDepth(SubmoduleOptionDepthTest.java:72)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Standard error
WARNING: A Java agent has been loaded dynamically (/home/jenkins/agent/workspace/Plugins_git-plugin_PR-1556@tmp/m2repo/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Standard out
WARNING: A Java agent has been loaded dynamically (/home/jenkins/agent/workspace/Plugins_git-plugin_PR-1556@tmp/m2repo/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
hudson.plugins.git.extensions.impl.SubmoduleOptionDepthTest.submoduleUpdateShouldUseValidShallowDepth[depth: configured=1, used=1]
Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
Stack trace
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
at jenkins.model.Jenkins.get(Jenkins.java:819)
at hudson.plugins.git.util.GitUtils.workspaceToNode(GitUtils.java:99)
at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:188)
at hudson.plugins.git.extensions.impl.SubmoduleOptionDepthTest.submoduleUpdateShouldUseValidShallowDepth(SubmoduleOptionDepthTest.java:72)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Standard out
WARNING: A Java agent has been loaded dynamically (/home/jenkins/agent/workspace/Plugins_git-plugin_PR-1556@tmp/m2repo/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
hudson.plugins.git.extensions.impl.SubmoduleOptionDepthTest.submoduleUpdateShouldUseValidShallowDepth[depth: configured=2, used=2]
Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
Stack trace
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
at jenkins.model.Jenkins.get(Jenkins.java:819)
at hudson.plugins.git.util.GitUtils.workspaceToNode(GitUtils.java:99)
at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:188)
at hudson.plugins.git.extensions.impl.SubmoduleOptionDepthTest.submoduleUpdateShouldUseValidShallowDepth(SubmoduleOptionDepthTest.java:72)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Standard out
WARNING: A Java agent has been loaded dynamically (/home/jenkins/agent/workspace/Plugins_git-plugin_PR-1556@tmp/m2repo/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
hudson.plugins.git.extensions.impl.SubmoduleOptionTest.testSubmoduleUpdateThrowsIOException
unexpected exception type thrown; expected:<java.io.IOException> but was:<java.lang.IllegalStateException>
Stack trace
java.lang.AssertionError: unexpected exception type thrown; expected:<java.io.IOException> but was:<java.lang.IllegalStateException>
at org.junit.Assert.assertThrows(Assert.java:1020)
at org.junit.Assert.assertThrows(Assert.java:981)
at hudson.plugins.git.extensions.impl.SubmoduleOptionTest.testSubmoduleUpdateThrowsIOException(SubmoduleOptionTest.java:71)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Caused by: java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
at jenkins.model.Jenkins.get(Jenkins.java:819)
at hudson.plugins.git.util.GitUtils.workspaceToNode(GitUtils.java:99)
at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:188)
at hudson.plugins.git.extensions.impl.SubmoduleOptionTest.lambda$testSubmoduleUpdateThrowsIOException$0(SubmoduleOptionTest.java:71)
at org.junit.Assert.assertThrows(Assert.java:1001)
... 3 more
Standard error
WARNING: A Java agent has been loaded dynamically (/home/jenkins/agent/workspace/Plugins_git-plugin_PR-1556@tmp/m2repo/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Standard out
WARNING: A Java agent has been loaded dynamically (/home/jenkins/agent/workspace/Plugins_git-plugin_PR-1556@tmp/m2repo/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Loading