-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.346.1
Artifactory plug-in 3.16.2
When using
conan config set general.revisions_enabled=True conan config set general.default_package_id_mode=recipe_revision_mode
conanClient.run() fails with:
sh -c "conan_build_info /var/opt/jenkins/tools/Conan/1.47/conan_log.log --output /var/opt/jenkins/workspace/conan-toolchain-test_master/conan-src@tmp/artifactory/conan3040587017867435854build-info " [1m[31mERROR: [Errno 2] No such file or directory: '/var/opt/jenkins/tools/Conan/1.47/.conan/data/pkgA/0.1/jenkins/test/package/e5d45e50fd7804fd8bb1fef707e277fa9096d789/conaninfo.txt'[0m ERROR: Couldn't execute Conan task. RuntimeException: Conan build failed with exit code 1 java.lang.RuntimeException: Conan build failed with exit code 1 at org.jfrog.hudson.pipeline.common.Utils.launch(Utils.java:280) Caused: java.lang.RuntimeException: Conan build failed. Couldn't execute Conan task. RuntimeException: Conan build failed with exit code 1 at org.jfrog.hudson.pipeline.common.Utils.launch(Utils.java:285) at org.jfrog.hudson.pipeline.common.executors.ConanExecutor.execute(ConanExecutor.java:128) at org.jfrog.hudson.pipeline.common.executors.ConanExecutor.collectConanBuildInfo(ConanExecutor.java:176) at org.jfrog.hudson.pipeline.common.executors.ConanExecutor.execCommand(ConanExecutor.java:97) at org.jfrog.hudson.pipeline.scripted.steps.conan.RunCommandStep$Execution.runStep(RunCommandStep.java:52) at org.jfrog.hudson.pipeline.scripted.steps.conan.RunCommandStep$Execution.runStep(RunCommandStep.java:39) at org.jfrog.hudson.pipeline.ArtifactorySynchronousNonBlockingStepExecution.run(ArtifactorySynchronousNonBlockingStepExecution.java:54) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
Because of the config settings, conan builds the package with another ID. It seems that "conan_build_info" is still using the ID as if the "recipe_revision_mode" is not set.