我的测试在从机上运行并连接到主机。在 Jenkins 中配置了一个在从机上运行的作业。所有环境变量都设置在主服务器上以及从服务器上。我正在尝试调用 pom 的目标来执行 tesng xml。
错误:
[EnvInject] - Loading node environment variables.
Building remotely on EnterpriseAdaptersNightlySlave in workspace C:\Jenkins\workspace\NetAppAdapterTests
[NetAppAdapterTests] $ C:\apache-maven-3.1.1-bin\apache-maven-3.1.1\bin\mvn.bat -f depot\stats-service\main\QA\pom.xml clean install
Error: Could not find or load main class install
Build step 'Invoke top-level Maven targets' marked build as failure