Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JENKINS-65315: SubmoduleOption: resolve env vars in reference path #1556

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Merge branch 'jenkinsci:master' into JENKINS-65315-environment-variab…

a7341e9
Select commit
Loading
Failed to load commit list.
Open

JENKINS-65315: SubmoduleOption: resolve env vars in reference path #1556

Merge branch 'jenkinsci:master' into JENKINS-65315-environment-variab…
a7341e9
Select commit
Loading
Failed to load commit list.
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