Open bilke opened 7 years ago
Hi, thanks for trying it. Honestly, I've not tried it with Docker, I'm a pretty newbie with Jenkins and PipeLine. In 0.25 (will be released next week) we introduced the "--cwd" parameter to the 'test_package' command, so could help with this. It allows to specify the current directory, so instead of change dir with Jenkins, we can do it with that. Please, stay tuned and tell us if you have any problem.
I've hit a similar issue. The fix is: to NOT SET CONAN_USER_HOME
either with the env variable or by passing it to newConanClient()
. It breaks something in the Artifactory plugin.
I've also reported this issue here: https://issues.jenkins-ci.org/browse/JENKINS-50218
I have read the blog post on Jenkins and my SimpleBuild script looks like this:
I wrapped everything to run inside a docker container. The problem is that
dir()
does not work inside a docker container and thereforeclient.run(command: "test_package ...
does not have the correct working directory. I know this is a serious limitation of the docker plugin but do you have any ideas how to workaround that?Using the Artifactory Conan client in combination with Docker would be really helpful to build Conan packages for different compiler (similar to the Travis CI workflow).
Another option maybe would be to use just plain
sh 'conan ...'
-commands inside the container and upload to Artifactory from outside the docker container...