Travis fails finding my .travis.yml - travis-ci

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.

Related

source code management setting not saved in jenkins job configuration

I Installed locally Jenkins 2.224 using war file.
I am trying to set a job to pull files from git as on the screenshot below.
but when I save my job and then click configure again - None radiobutton is selected and all git settings are lost. Did it happen to anyone else? I cannot find what is the reason for this issue.
This is a bug in v2.224 that has been fixed in the subsequent version. Upgrading to the latest version should fix your issue.

Renaming a repo wrecks travis

I renamed my repo on github and now everything is broken. It started off with the "build status" image being broken.
From desperation I revoked travis's github access to my account. I wanted to delete my travis account to start fresh but that's impossible it seems :(
I tried to stop CI on my one repo and I got this error:
An error happened when we tried to alter settings on GitHub. It may be caused by API restrictions, please review and add your authorized Orgs
I'd love to, but travis's website doesn't seem to have a "reauth" button.
I think my travis is in limbo :(
Fixed it, just had to sign out and sign in to travis. That re-auths travis from github because it uses github sign-in.
Maybe there should be a button for that in the main travis UI?

Jenkins IOS building and Git branches

Hello i am trying to setup Jenkins to build my git hub rep, i have more than one branch, master and develop branch, they have the same code on it at the moment, and when i build my master branch and set up the archive the artifacts to /.ipa it builds and saves it just fine. I test my app and it works fine, but when i change my build branch to develop i get a error
ERROR: ‘/.ipa’ doesn’t match anything: ‘’ exists but not ‘/*.ipa’
to add i been working with this a few days so i am new with Jenkins, and if i did not explain this good , please say so i will try to give more details if needed, thank you.
It just means that the pattern you typed does not match any file in the Jenkins workspace. Reason for this could be that either you typed the pattern wrong (which is unlikely if it already worked) or maybe the workspace is currently empty. Try to trigger a build and see if it produces the file you want and archives it.

Xcode commit issue with git

I'm having an issue with Xcode trying to commit some changes to a Git repo. Today, I created a branch from master in order to work on future updates of an app while keeping the ability to fix the release version.
The problem I have occurs when committing changes. I get the following error message:
error: pathspec 'Furtivus.xcodeproj' did not match any file(s) known to git.
The thing is, back in the early days of the project, I changed the name of the bundle and the project and it is no longer called "Furtivus". I've tried looking into the .git directory where my local repository is located. I've also tried looking for any files containing "Furtivus" on my mac with no results. I can't find where to change this name.
Obviously Git is trying to find the old project that was renamed, so how do I change that?
I've done a lot of searching, in the documentation regarding Git, and on Stackoverflow and nothing seems to cover how to handle Git and a project name change.

Remove Travis CI old builds

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.

Resources