Taking a look here it seems the build couldn’t find the master branch. It is possible your GitHub repo has another default branch (such as main) which is why the build is not finding master.
If you’re using the UI to run a build, in the drop down when starting a new build you get the option to select a branch.
You’ll want to make sure this branch selection matches what exists in your GitHub repo. Also, in your Pipeline settings under General you can select a Default Branch, so there you’ll also want to change that to whatever default branch you use on GitHub as well. This will prevent you having to change the default branch every new build.
Thanks for your reply, it worked after selecting main.
I have a folder .buildkite/test.sh and - command: '.buildkite/test.sh' in my pipeline.yml
I see this error while running a build.
|Running script|0s|
| --- | --- |
||$ ./.buildkite/test.sh|
||Sorry, home directories outside of /home are not currently supported.|
||See https://forum.snapcraft.io/t/11209 for details.|
||🚨 Error: The command exited with status 1|
||user command error: exit status 1|
Please could you have a look and let me know why I get this error.
Happy my suggestion worked for you. Let me take a crack at this next one.
So looking at the error message, this looks to not be on Buildkites side but on the side of Snapcraft. The error below is letting you know that home directories outside of /home are not currently supported.
I tried to follow the post you linked, but it doesn’t work for me. I keen to understand a simple issue which I am seeing here.
I have a test.sh with below below contents.
echo “Testing my build…”
docker run hello-world
When I trigger a buildkite build, it has prepared a working directory as shown below:
Preparing working directory
$ cd /var/lib/buildkite-agent/builds/********/test-806/rubydocker
…
…
Running script
$ ./test.sh
Testing my build…
Sorry, home directories outside of /home are not currently supported.
The first line seems to have executed, but the second line which is a simple docker run hello-world is not.
I tried to follow the post you linked on the issue, but not successful.
When I print echo $HOME on my ubuntu agent, I get this /home/user
Could you please have a look and let me know what could be wrong.
Hello, @Sathya! I’m jumping in for @jared here. Can you please send a link to the build where you see the issue to support@buildkite.com?
Many thanks.
Best!