I'm attempting to build my iOS app on bitrise.io. This app uses an SPM package which is hosted in a private github repo. The repo is not able to be made public.
Locally the builds work, they also work locally with fastlane and the bitrise cli. When I run them on the remote pipeline, I get the following error:
xcodebuild: error: Could not resolve package dependencies:
Failed to clone repository https://github.com/USERNAME_REDACTED/REPO_NAME_REDACTED:
Cloning into bare repository '/Users/vagrant/Library/Developer/Xcode/DerivedData/ORG_NAME_REDACTED/SourcePackages/repositories/REPO_NAME_REDACTED-d35b1ef7'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
My understanding as to why this does not work, is because the Xcode instance on the remote pipeline machine, does not have a GitHub account added. I am able to do this using the Xcode GUI locally by going to Xcode > Preferences > Accounts as you can see below
The problem here is that I need to figure out a way to do this via script for the remote by providing a username and personal access token. Thus far I've spent about 20 hours looking through xcodebuild docs and messing around with different configs however I've not had any luck getting this to work.
Any help is appreciated.
Changing the Xcode project to use ssh to import the module worked for this. I had to also change the remote CI machine to use the system keychain in order to fetch the SSH key.
I am having trouble creating a new automated build in Dockerhub, using the Github link.
I cannot create an automated build from my Github account link that is already building against another repo. It is currently linking to the same account in Github that one of my Dockerhub builds is already using, but when I try to create a new automated build it does not display any linked accounts. I then go through the process of linking, which then tells me its already linked.
No idea whats up with this but its super annoying.
I ended up solving this by un-linking then re-linking my github account. It is now working fine.
Even though the last message in the DockerHub log:
Successfully built 73dfc9054b7e
DockerHub states that the status is 'Build Error'. The image builds correctly on multiple local machines, and the last message from the log has no errors. What could be the reason for the build error? Does anyone know if there is there another place besides the DockerHub log where we can see why the build was not successful?
Docker seems to be very promising but these types of errors make us hesitate when thinking about migrating some of our nodes to docker containers.
Thanks.
I did search your issue through the build id, and tried reproducing the bug. You might have seen me forking your public GitHub branch. We found and resolved the issue.
If you see the latest build for anaconda-plus, it succeeded.
If you encounter such issue again, please create a support ticket.
I got a warning log like this and my builds have been failed.
WARNING: We were unable to find a .travis.yml file. This may not be what you
want. Build will be run with default settings.
But there have existed .travis.yml in my repo.
This issue seems to be caused after I changed my repo name on Github.
(Before changes it, Travis could detect my .travis.yml)
My environment is there: https://travis-ci.org/PizzaFactory/mRDT
How to fix this issue?
It was happening probably because you renamed the repo on GitHub.
What I did in order to fix the problem is to go in Travis Accounts section, press the Sync button and then push another commit to the repo.
This is my first day using Travis CI. I made some mistakes, I've tried removing and adding the repository again, but Travis CI build history is still there, with broken links for old commits.
Any chance to remove those old builds?
You can use the travis command line tool
Login first using travis login then you can do the following
LAST_BUILD_NUMBER=68
for i in $(seq 1 $LAST_BUILD_NUMBER ); do travis logs $i --delete --force ; done
This will remove the "logs" so there's no information aside from the header and any confidential information will no longer be visible.
There's no way for the user to remove builds, but if you really want them removed I think your best bet is to email support (support#travis-ci.org) and ask them to remove it manually.
Per https://twitter.com/travisci/status/557932883571392512
Since at least 2015/01/21 you can now delete [the log] from the web UI:
As henrikhodne, build deletion is not possible.
From https://github.com/travis-ci/travis-ci/issues/877 (mirror) where the issue was raised:
Closing this issue for good, as this isn't on the roadmap for the near future. (Jul 23, 2015)
You can click on the Remove log button
Another way to PURGE EVERYTHING which results in:
removing all the build history from Travis CI
removing the repo from Travis CI
removing the repo data from GitHub (all issues, PRs, wiki, everything)
removing all the dangling commits from git push -f
First make sure you have screenshots/backups/... of all your settings in Travis and in remote repository + that you have a 1to1 mirror of your remote repository (meaning ALL your branches properly downloaded to the local repo). That should be possible just with git clone, git fetch and maybe even git checkout to each of the branches, so that you have all the history available locally (correct me if I forget some step).
Then you want to go to your remote server e.g. GitHub and delete the repository (Settings - Danger Zone - Delete this repository). All your issues, PRs, wikis, any settings are gone now. Then create the same-named repository on GitHub again (do NOT! initialize it with anything, no license, no readme, no nothing).
Now all the dangling commits which would be cleaned locally via git gc are gone from the remote repo (stealthy GitHub links begone!). Anything that should be the bare repo.git folder should be overwritten (unless GitHub isn't doing something silly).
Proceed and go to Travis CI profile:
https://travis-ci.org/profile/<username>
Press Sync account under My account and check the Travis repo. All the settings and build history should be gone now too.
Now either remove the GitHub repo and resync again or proceed with the restoring:
git push -u origin <branch name> # repeat for each branch
Go to your settings backups (e.g. screenshots) and set everything the way it was before.
I was able to wipe the Travis build history simply.
I'm logging into to travis-ci.org via my Github account.
I went into travis-ci-org, and hit the + to show all repositories:
Then I turned off Travis CI for the repo in question by flipping this toggle:
In Github, I renamed my repo.
Then I hit "Sync account" in the upper left.
For my final step, I flipped that toggle back on under the new repo name.
Voila - no Travis history. I triggered a build manually and now everything is clean and clear.