In a nutshell i have a following test pipeline that drives me crazy:
name: 'Init submodule'
- git submodule update --init --recursive
- git submodule status
name: 'Do something with submodule'
- ls test-lib -al
name: 'do just clone'
- git clone firstname.lastname@example.org:mykha/submobule-test-lib.git
- ls submobule-test-lib/*
What im facing is that first step is executed correctly and has an output like:
+ git submodule update --init --recursive
Submodule 'test-lib' (email@example.com:mykha/submobule-test-lib.git) registered for path 'test-lib'
Cloning into 'test-lib'...
Warning: Permanently added the RSA host key for IP address '22.214.171.124' to the list of known hosts.
Submodule path 'test-lib': checked out '15755730500ea84a78ef065621ed899f550df6cb'
The commit hash is valid and submodule has some files pushed on it..
But the 2nd step returns empty list of files.
At the same time if i do just a git clone of the same submodule repo (at step 3) it works just fine. My assumption is that all ssh keys and repo access are just fine.. the problem happens with submodule file tree only.
Am i doing something wrong? Does anyone faced something similar?
Update: actually this is how steps are defined in bitbucket pipelines. Submodules are not fetched automatically for each step. My bad =(
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events