Bandara
Bandara

Reputation: 800

Setting up continues Integration on TFS with GitLab as Repo

I need to configure CI pipeline in my TFS with source repo in GitLab, I have updated the Trigger section as below and checked in the code, but the build was not triggered, is there any configuration required in the GitLab repo? Please advice hot to achieve this.

enter image description here

Upvotes: 0

Views: 2735

Answers (2)

Bandara
Bandara

Reputation: 800

I have changed the Poling interval to 180 seconds and it worked.

Upvotes: -1

Luca Cappa
Luca Cappa

Reputation: 1999

I would troubleshoot your problem by checking the following in this order:

  • when triggering the build manually, does the source code downloading from the GitLab repository successfully work?
  • if yes, then:

    • did you created and pushed the develop branch on the repository? You need to publish your locally created 'develop' branch on the remote repository, e.g. >git push -u origin develop
  • if no, then there are issues on the "Services" entry you created on TFS for accessing your GitLab repository:

    • check whether you are using HTTPS in the URL;
    • to enable HTTPS access to your repository, remember to set a password on your GitLab account, then use that password along with your username (email address) on the "Services" endpoint set up on TFS;

p.s. also, check which 'Connection' is selected in the Repository section of your build definition: it should be the one pointing to your GitLab repo :-)

Upvotes: 2

Related Questions