Can not add project to CI in gitlab 8.1.3 - gitlab

I am trying to setup the CI deployment on gitlab for days.
I found that gitlab-ci had been integrated into gitlab after 8.0. But I can't find my projects in CI page, and can't press the button to add them to CI.
My server is ubuntu 14.04.3 LTS trusty. The latest version of gitlab omnibus package and sameersbn's CE docker both failed. Maybe the older version will work for me?
If anyone has the same problem, please give me some hints.

I think I found a solution. As soon as I committed something to the repository, a build automatically triggered and my project automatically showed in the CI projects.
Hope this helps!

Have you enabled Gitlab CI service for your project?
To set up a Gitlab CI for your project go to the project page, then navigate to Settings -> Services, click on "GitLab CI", then check "Activate".
After that project should appear in CI page.
You would need to set up a runner for a project, either use a shared one or assign a specific one.

Related

Build works locally and fails in Azure

I have a project in C Sharp which build correctly in my local machine ( as well as in the one from my colleagues ). But when we try to configure the pipeline in Azure, in the step of Nuget restore everything stops and we get an error message stating that package "A" is not compatible with netcore 2.2, as well as package B,C,D,etc.
Why is it possible to see this error in Azure but not in my local? The project is setup to use netcore 2.2 and builds fine in my local machine.
Why is it possible to see this error in Azure but not in my local? The project is setup to use netcore 2.2 and builds fine in my local machine.
This error can occur with an outdated version of nuget. The default version of NuGet running in the VSTS pipeline was not the latest one.
So, to resolve this issue, there is a nuget version installer task which you can run as part of your build step to upgrade the version of nuget running in your build pipeline:
Besides, if update nuget version not resolve this issue, please check the SDK version on the build agent is same as your local, you can use the task Use .NET Core to update the SDK version.
Hope this helps.

Move android studio project to an already created Github Repository

I made an android studio project and I also have an empty Github repository already created where I am a contributor. How do I move my android studio project to this already created repository?
I tried but I am not able to achieve this.
Any ideas?
Thanks.
The simplest way to do that is not to bring your project into an existing git repository, but to bring git to your project.
At the root of your project:
git init
git remote add origin <url>, where <url> is your GitHub repository's URL.
git branch --set-upstream-to origin/master to setup your default branch and remote.
I managed to solve the problem. Instead of moving the project using android studio to an existing Github repository, I did it locally using the command line. The steps I followed are here. Now its perfect and further commits can be now done directly from the android studio.

TeamCity Build Agent (v27767) deletes MsBuild.exe on run

TeamCity 8.0.6 CI box with build agent has been purring along for several years. After a system restart, TeamCity seems to have auto-upgraded the local build agent to version 27767. No other configuration changes were made, but this error now shows on build trigger:
Unable to find MSBuild at C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe, please check MSBuild environment variable to target to Microsoft .NET Framework 2.0/3.5/4.0 or Mono installation directory
I RDP'd into the box and see that MSBuild.exe went missing - strange. So I re-add it from a local install and retrigger a build. As soon as the build agent picks up the file, it disappears! Happens every time. Maybe Windows is protecting this folder?
The build agent then becomes "incompatible". I tried this workaround, but this doesn't stop msbuild.exe from being deleted.
I checked that there are no odd steps in my build configuration. What could be deleting or moving MSBuild?

Android Studio error pushing to Github

Hello
I have a project in my Windows PC in Android Studio 2.3. I'm trying to Share my project on Github. I enabled the use of Git and use the Share Project on Github option, after that option successfully create a new Repository in my Github account but the initial push failed and states that it could not found the repository, and I'm checking the repository was created successfully... Any idea of what it is happening?
Comments:
Settings -> Version Control -> Github I checked the Test option and the host, Login and Password seems to be correctly.
Settings -> Version Control -> Git I checked the Test option and it seems to be correctly.

TeamCity FTP Publish

I am trying to build and deploy my project in team city. I get green but it does not publish project to FTP. What could be the problem?
Teamcity Build Step:
Publish Profile:
Buildlog of Teamcity:
Try the build step Visual Studio.sln, give the Solution file path , select the Visual Studio Version, select the Target as build;publish, select Configuration as release. Then run the program. You will get an error message. Then check the following link for a solution.
http://www.jayway.com/2011/03/20/configuring-automatic-deployment-of-a-windows-azure-application-using-teamcity/
I hope this would help you.

Resources