Closed e88z4 closed 2 years ago
I found the issue. The package declaration package kubernetes.yamlPatch
doesn't match with the class import declaration in the steps script import import kubernetes.pod.yamlPatch.DockerBuildContainerPatch
This was previously ignored with JTE v2.3.0 but it is being considered as an error with JTE v2.5.2.
would you be able to provide a minimally reproducible example in a git repo?
The step / class contents don't matter much - just the import statements and library sources with the same directory structure.
right off the bat - i see a couple head scratchers.
because you're importing import kubernetes.pod.yamlPatch.DockerBuildContainerPatch
I expected to see
// current: package kubernetes.yamlPatch
package kubernetes.pod.yamlPatch
class DockerBuildContainerPatch{}
the error seems to be saying the same thing
Compilation incomplete: expected to find the class kubernetes.pod.yamlPatch.DockerBuildContainerPatch in *, but the file contains the classes: kubernetes.yamlPatch.DockerBuildContainerPatch
try changing the package name to what it should be.
the bigger question is why this ever worked.
alrighty - you beat me to it :)
Jenkins Version
2.319.3
JTE Version
2.5.2
Bug Description
I have an existing JTE library that I have been developing with 2.3. Last night, we upgraded our non production environment to JTE v2.5.2 and tested our library.
The steps code library is below:
The class source code is below:
Relevant log output
Steps to Reproduce
Execute pipeline with the new JTE version v2.5.2