Quantcast
Channel: How to use Jenkins to manage a repository from Github with a submodule from Bitbucket? - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by simbo1905 for How to use Jenkins to manage a repository from Github with a submodule from Bitbucket?

$
0
0

It is a convenience that Jenkins will pull from git for you. With such a complex setup as needing to pull from two repos you can simply use a pipeline job that runs "sh" to explicitly git checkout the code and pull the submodules:

sh "git checkout ${custom_env_var} ${custom_parameter}

The good news with this slightly manual approach is that you can debug the sh commands to run on a dev server and cut paste them straight into a pipeline. Just start a “sh” session (usually it runs bash) and test the commands.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>