Top 10 Website to Host Git Repository Online

In any industry, code has become one of the most business-critical assets. As a result, storing, securing, and collaborating around code has become a significant challenge for enterprises large and small.

Choosing the right source code management solution is no easy task. Even more so when you think about hosting your code behind your own firewall.

This post takes you through this decision – starting with a few common questions.

One of the first questions you’ll need to answer for yourself is: do you have the resources and expertise to professionally manage your code’s on-premises hosting?

1. Is On-Premise Hosting the Right Choice for You?

Any IT department must follow strict security policies. If your organization’s policies require you to keep your code in-house, then of course you will have to deal with hosting your code behind your firewall.

However, self-hosting your code is not a decision you should rush. There is much to keep in mind.

Security:

In an on-premises scenario, your IT department is responsible for setting up a secure environment and installing relevant updates consistently. Keeping a server secure and properly maintained is nothing to be taken lightly.

Availability / Backups:

Today, the code is important to many areas within the company. Therefore its permanent availability is often important. You should make sure that your server has little or no downtime.

Also, note that losing code can be a life-threatening event for many enterprises. You need to provide a completely fail-safe and complete backup strategy in order to make data loss impossible.

Integrations:

Also, think about other systems that need to interact with your code repository. Things like continuous integration servers or issue tracking systems can be other important parts of your software cycle.

Make sure they can be integrated with your code hosting platform – whether it’s behind a firewall or in the cloud.

Budget:

Depending on your needs, the size of your team, and the number of repositories, different solutions come at wildly different prices. This is true for both self-hosted installations and online services. You need to make sure that your own IT department can handle core subjects like security and maintenance flawlessly.

2. Commercial or OpenSource?

As of today, almost all source code hosting options are commercial systems. In fact, the main argument for paying a really high price sometimes is the professional support that it includes. For further updates in case of problems/queries, you can count on the professionals who help you.

If you don’t need these services, you can consider an open-source solution.

3. Complementing Tools

As with most solutions, the actual task of “source code management” is only part of their offering. This makes sense if you consider that today, software development involves a myriad of different tools and workflows – the ones that work best when tightly integrated with one another. Think issue tracking, code reviews, continuous integration systems, etc.

Here is the list of Top 10 Website to Host Git Repository Online:

1. Amazon AWS CodeCommit:

Amazon’s AWS platform includes hosting for Git repositories. It also comes with features that facilitate collaboration, such as code review and access control.

AWS CodeCommit is a secure, highly scalable, managed source control service that hosts private Git repositories. It makes it easy for teams to collaborate on code securely, including encrypted contributions in transit and at rest. CodeCommit eliminates the need for you to manage your own source control system or worry about scaling up its infrastructure. You can use CodeCommit to store anything from code to binaries. It supports the standard functionality of Git, so it works seamlessly with your existing Git-based tools.

Benefits:

  • Fully managed
  • Secure
  • High availability
  • Faster development lifecycle
  • Use your existing tools
  • Collaborate on code

2. Assembla:

Assembla has a long history in the business with its Subversion hosting. It includes a “workspace” platform with issue management, time tracking, and collaboration tools such as Wiki and its own messaging system.

It is a source code management tool that specializes in providing cloud-based version control services for code projects and agile software development. They provide an additional project management tool for those who use their cloud repositories.

Features:

  • Work together with Git merge requests
  • Collaboration
  • Integrated Issue Tracking
  • Security
  • Package Management
  • Project Management
  • Code Analysis

3. Beanstalk:

Being a very lean and reliable service, Beanstalk is a great option for businesses. It provides its own “deployment” infrastructure and integrates well with other tools such as Zendesk, FogBugz, Basecamp, or Lighthouse.

Features:

  • Easy-to-use service for deploying.
  • Scaling web applications
  • Services developed with Java
  • Backup / Recovery
  • Development Environment
  • Testing

4. Bitbucket:

Bitbucket, one of the giants in the industry.

The biggest advantage of Bitbucket Server is certainly that it comes from Atlassian – the company that develops highly popular products like JIRA and Confluence. This is why the integration with these tools (especially JIRA) in BitBucket Server is seamless.

BitBucket Server is an obvious choice if your development toolchain already relies on other Atlassian products like JIRA and Bamboo.

Features:

  • Merge Checks.
  • Code search
  • Git Large File Storage
  • Bitbucket Pipelines
  • IP whitelisting.

5. Codebase:

One of the few platforms to support Git, Subversion, and Mercurial. Additionally, ticketing, project management, and deployment infrastructure tools are included. The codebase is packed with features to help you manage your code and your project with ease.

Features:

  • Repository Hosting
  • Exception Tracking
  • Time Tracking
  • Customizable Permissions
  • Complete Developer API
  • Powerful Searching & Filtering
  • Custom Branding

6. RhodeCode:

Sophisticated code review and approval system including news feed and mention system. With features like LDAP support and IP restrictions, Roadcode seems to be geared for corporate use.

Roadcode allows developers to use not only Git but Mercurial and Subversion for revision control. Feature-wise, the platform offers the most important collaboration features such as code reviews and pull requests – but banks on flexible integration with external tools for both issue tracking and continuous integration.

Features:

  • Advanced code reviews.
  • Side-by-side diffs.
  • Pull requests.
  • Inline source code chat.
  • Full-text code search and source code indexing.
  • Web-based file adding, editing, deletion.

7. SourceForge:

SourceForge is an open-source community resource that is dedicated to helping you succeed as much as possible in open-source projects. We thrive on community collaboration to help make it a premier resource for open-source software development and distribution.

A classic hosting site whose reputation took a turn for the worse in the early 2010s after some shady practices, SourceForge has been under new ownership since 2016 and is determined to restore its good reputation.

Features:

  • Unlimited bandwidth for Open Source projects
  • Integrated Issue Tracking
  • Spambot protection
  • Extensive worldwide mirror network
  • Download statistics over time, by platform, and by region.
  • Analytics is completely free, takes no time to set up.
  • Automatic platform detection

8. Perforce Helix:

Perforce has the longest history in source code management of all the companies in this overview. It is mostly known for having an impressive tradition in enterprise code hosting through its own Perforce version control system. Recently, however, the company expanded its offering with its new Helix4Git platform.

Features:

  • Security and scalability
  • By mirroring work into a Perforce server
  • Specific branches and files can be locked

Especially will large companies appreciate the long-term experience Perforce as source code management provider; Enterprises can ensure that is well understood their needs and requirements.

9. GitHub:

GitHub is an increasingly popular programming resource that is used to share the access code. It is a social networking site for programmers that use a large range of companies and organizations’ project management and collaboration.

Undisputed number one in the open-source world is having projects like Ruby on Rails or jQuery hosted on GitHub. Offerings include great code review and collaboration features.

Features:

  • Drag and Drop Gist Code.
  • Creating a folder via the Web Interface
  • Using Git URL Shortener.
  • Task Checklist.
  • Using Github Command Line Interface.

10. GitLab:

GitLab is a web-based Git repository that offers free open and private repositories, issue-following capabilities, and wikis. This is a full DevOps platform that enables all tasks to professionals from the project planning and source code management, monitoring, and security. It allows teams to collaborate and build better software.

With open-source background, GitLab code provides the perfect platform to develop at a rapid pace for cooperation. The free Community Edition and Enterprise Edition can be installed on your own servers. A hosted offering running on GitLab.com is also available.

Features:

  • Offers git repository management.
  • Code Reviews
  • Issue tracking
  • Activity feeds and wikis

GitLab teams product helps increase reducing lifecycle and productivity, which creates value for customers return.

There’s a good chance that one of these solutions is the perfect choice for your requirements.

Tagged : / / / / / / / / / / / /

Top 5 Git Version Control Software in Cloud

Version control is a way to keep track of changes to code so that if something goes wrong, we can compare across different code versions and go back to any previous versions we want. This is very essential where many developers are constantly working on/changing the source code.

Benefits of Version Control Software:

The main advantages of using version control software include streamlining the development process, managing the code for multiple projects, and keeping a history of all changes within a code.

A version control software saves all the changes in a repository. So, if developers make a mistake, they can undo it. Also, they can compare the new code with the previous version to resolve their grievance. It can reduce human errors and unintended consequences to a great extent. Very suitable for any web development company around the world.

In addition, it facilitates the management of the project’s centralized repository, file storage, documents, and other information related to the project.

Here is the list of Top 4 git version control software in cloud:

1. GitHUb

GitHub helps software teams collaborate and maintain a full history of code changes. You can track changes in the code, turn back the clock to undo errors, and share your efforts with other team members.

It is a repository for host Git projects. For those wondering what is Git? It is an open-source version control system with local branching, multiple workflows, and convenient staging areas. Git version control is an easy-to-learn alternative and provides faster operation speeds.

Features:

  • Drag and Drop Gist Code.
  • Creating a folder via the Web Interface.
  • Using Github Command Line Interface.
  • Linking Lines.

2. GitLab

GitLab comes with a number of useful features such as an integrated project, a project website, etc. By using GitLab’s continuous integration (CI) capabilities, you can test and distribute code automatically.

You can access all aspects of a project, view the code, receive requests and add conflict resolution.

This version control software is designed for the DevOps lifecycle. Meaning, your projects are quite complex and involve cloud engineering and the like. Gitlab provides basic features such as view code, pull requests, and merge resolution.

  • Development.
  • Security.
  • Ops teams collaborate
  • Build software
  • Reduce development costs

4. Beanstalk

Beanstalk is a perfect choice for those who need to work from remote locations. This software is based on browser and cloud, which allows users to code, commit, review and deploy using the browser.

It allows users to code, commit, review, and deploy code using the browser. For its ease of use, you can integrate it with any messaging or email platform for efficient collaboration.

It can be integrated with messaging and email platforms for efficient collaboration regarding code and updates. It supports both Git and SVN and also comes with built-in analytics features. For security, it takes advantage of encryption, two-factor authentication, and password protection functions.

Features:

  • Variety of Application Deployment Options.
  • Wide Selection of Application Platforms.
  • Management and Updates.
  • Customization
  • Scaling
  • Compliance

4. HelixCore

Helix is one of the best version control systems. It provides an integrated platform for collaborative development and protection of intellectual property of any kind. It benefits from several new capabilities, support for both distributed and centralized development workflows. Helix also provides a complete Git ecosystem. And it comes in both on-premises and cloud versions.

Helixcore provides seamless team collaboration and support for both centralized and distributed development workflows. It is available for both cloud and on-premises deployments, which makes it scalable.

Features:

  • Work order management
  • Applications Management
  • Document Management
  • Access Controls
  • Procurement Management

5. Apache Subversion

Apache Subversion is another open-source version control system, founded a few decades ago by CollabNet. Both open-source arenas and enterprises consider it a reliable option for valuable data.

SVN is easy to implement with any programming language. Also, it provides persistent storage for handling text and binary files.

Features:

  • Inventory management
  • Security management
  • History tracking
  • User access controls
  • Data recovery
  • Workflow management

These are the best version control systems that a web development company should definitely consider using, according to the requirements.

Tagged : / / / / / /

[SOLVED] Flutter: Not showing “Open for editing in Android Studio”

The problem is caused by missing .iml project files. These files are added automatically to the .gitignore file but they should not. To fix it:

  1. Delete .idea folder.
  2. Create a new temporary Flutter project with the same name.
  3. Copy from the project to your existing project these 2 missing files:
  • [project_name].iml
  • android/[project_name]_android.iml
  1. Open Android Studio and the problem should be gone.

To avoid it in the future, make sure .iml files are not excluded in the gitignore. There is a Github issue on this topic.

Tagged : / / / / / /

php version (7.2.34) does not satisfy that requirement.

When i download the Laravel project from Github and setup project i run composer update its showing this types of error

Problem 1
- Root composer.json requires php ^7.3|^8.0 but your php version (7.2.34) does not satisfy that requirement.
Problem 2
- phpro/grumphp[v1.0.0, ..., v1.1.0] require php ^7.3 -> your php version (7.2.34) does not satisfy that requirement.
- phpro/grumphp[v1.2.0, ..., v1.3.1] require php ^7.3 || ^8.0 -> your php version (7.2.34) does not satisfy that requirement.
- Root composer.json requires phpro/grumphp ^1.0 -> satisfiable by phpro/grumphp[v1.0.0, ..., v1.3.1].

Let open editor and run below

composer install --ignore-platform-reqs

Thanks

Tagged : / / /

How to create an HTML slide presentation in reveal JS?

In this tutorial i’m going to desribe how to create an HTML slides presentation In Revealjs. Plz follow some easy step mentioned below. Complete slides found here repository from https://github.com//reveal.js, and you can implement this slides structure in your own slides.

Each “slide” in your “deck” is denoted by a
tag in the section, as shown above. You can then use normal HTML syntax and CSS styling to fancy up your elements, but basically, you just write out your sections, and voila you have a presentation. To use your own CSS you should probably add a custom.css file and reference it in the section after the generic reveal CSS and the one for the theme you’re using, so you override any default behavior.

For example, to add a pointing-finger emoji to an element in a list as you step into it, you’d use the following CSS:

and in your html you’d mark it up as follows:

To highlight fragments in a sentence in bold as you step into them, firstly you need to override the default behavior where they are hidden until stepped into:

you’d use this in your html like this:

Best of all, with some additional javascript libraries you can have even more fun! Here’s how to add rainbow sparkles to elements on your slide. It’s still a bit of a work in progress but anyhow here we go:

Firstly, I think you need to add jquery and the javascript code for the sparkles as dependencies in your HTML, so in the <script> section, underneath the line that initializes the main RevealJS code you need to add the following:

Then you need some CSS to define your fragment behavior, like above:

Then you need to set the desired behavior of your sparkles in the HTML by adding a RevealJS EventListener that acts when the fragment is shown(https://github.com/hakimel/reveal.js/#fragment-events). This gets added into the <script> tag where RevealJS is initialized:

Tagged : / / /

Github VCS connection – List remote refs failed: javax.net.ssl.SSLHand

rajeshkumar created the topic: Github VCS connection – List remote refs failed: javax.net.ssl.SSLHand
I am facing same issues while connecting with github…

Test connection failed in Airvata :: compile
List remote refs failed: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I am wondering as yesterday it was working without any issues but now its not working any more…..

-Rajesh
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Github VCS connection – List remote refs failed: javax.net.ssl.SSLHand
Updated…..
I was using https mode of gihub url which is not working and throwing same error as below but when i moved to ssh

eg. git@github.com:scmgalaxy/airavata.git
along with
user name – git
Uploaded key options from team city in which pvt key has been added. it works!!!

I will troubleshoot later point of time, why https is not working suddenly.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged : /

Couldn’t find host github.com in the _netrc file; using defaults

rajeshkumar created the topic: Couldn’t find host github.com in the _netrc file; using defaults
C:\Build_WS\BuildDeployment\Job1\117>git push –verbose

* Couldn’t find host github.com in the _netrc file; using defaults

* Adding handle: conn: 0xc7d838

* Adding handle: send: 0

* Adding handle: recv: 0

* Curl_addHandleToPipeline: length: 1

* – Conn 0 (0xc7d838) send_pipe: 1, recv_pipe: 0

* About to connect() to github.com port 443 (#0)

* Trying 192.30.252.130…

* Connected to github.com (192.30.252.130) port 443 (#0)

* successfully set certificate verify locations:

* CAfile: C:\Program Files (x86)\Git/bin/curl-ca-bundle.crt

CApath: none

* SSL connection using AES128-SHA

* Server certificate:

* subject: businessCategory=Private Organization;

1.3.6.1.4.1.311.60.2.1.3=US; 1.3.6.1.4.1.311.60.2.1.2=Delaware;

serialNumber=5157550; street=548 4th Street; postalCode=94107; C=US;

ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com

* start date: 2014-04-08 00:00:00 GMT

* expire date: 2016-04-12 12:00:00 GMT

* subjectAltName: github.com matched

* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert

SHA2 Extended Validation Server CA

* SSL certificate verify ok.

> GET /EigenRisk/RACE/info/refs?service=git-receive-pack HTTP/1.1

User-Agent: git/1.9.5.msysgit.0

Host: github.com

Accept: */*

Accept-Encoding: gzip

Pragma: no-cache

< HTTP/1.1 401 Authorization Required * Server GitHub Babel 2.0 is not blacklisted < Server: GitHub Babel 2.0 < Content-Type: text/plain < WWW-Authenticate: Basic realm="GitHub" < Connection: close < * Closing connection 0 Build was aborted Aborted by anonymous Finished: ABORTED Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Couldn’t find host github.com in the _netrc file; using defaults
Solution:
Add following line…
git config http.postBuffer 524288000
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Top 5 Open Source Code Management tools

top-5-open-source-code-management-tools
The old way of software development where the release engineers ran from one mates to another mates to keep track on Developers to know which module they are working and when they changed something in the code or which bugs has been tracked or fixed. No doubt, that process was pathetic, stressful, filled with issues and errors.
But, now things have changed. This is the era of DevOps where everyone works as a Team and collaborate with each other and use various tools in the Software Development Lifecycle. So, today we are going to discuss on one of the most important tool called by name Code Management Tools. In this article we will see top 5 open source code management tools which are mostly used by DevOps professionals these days.
But before going further lets see what is source code management?
Code management is actually a process of handling or managing changes to source code over time with the help of softwares or tools. These softwares keeps track of every changes and modifications in the code which is made by developers frequently. If there is some kind of mistakes made by developers they can simply go back compare it with previously written code and fix the mistakes easily. With the help of code management tools Developers team can work on different features and on bug fixing simultaneously by changing code with out disrupting team members. In other words you can say It give developers the ability to work concurrently on files (in branches that may or may not converge) without conflicting each other and also give developers the ability to merge changes with other developers’ changes, to track and audit changes that were requested and made, to track bug-fix status and to perform releases.
So now the question is which code management tools to use. When you search for the options you will get hundred of tools in your search results. To make this job easy for you we have done some research and make this list of Top 5 Open Source Code Management tools.

1. Subversion

Subversion

Key Features
  • Open Source
  • Merge tracking
  • Renamed/copied/moved/removed files retain full revision history.
  • Google Code even uses SVN
  • Path-based authorization
  • Language bindings for C#, PHP, Python, Perl, Ruby, and Java
  • Changelists to organize commits into commit groups

2. GIT

GIT

Key Features
  • open source
  • cheap local branching
  • fast performance
  • multiple workflows
  • convenient staging areas
3. Mercurial

Mercurial
Key Features
  • open source
  • fast and powerful
  • easy to learn
  • functions are less complicated
  • integrated web-interface

4. Github

Github

Key Features
  • Open Source
  • Code review
  • Issue tracking with labels, milestones
  • largest host of source code in the world
  • Commits history
  • Graphs: pulse, contributors, commits, code frequency, punch card, network, members
  • Unified and split diffs

5. CVS

CVS

Key Features
  • Open Source
  • Easy to learn
  • Google still hosts the original Usenet post that announced CVS
  • Maintains a central repository of the most recent repository
  • CVS allows to rollback any commit in the repository, even if this may require some time
  • CVS uses a client–server architecture
  • CVS can also maintain different “branches” of a project
  • Several developers may work on the same project concurrently
Code Management these days plays an important role in development process and especially when team (large / small) works on single application. So, choose it wisely. Now , its your turn if you think this list should contain some other tools instead of this than write below in the comment box.
Tagged : / / / / / / / / / / / / /

Top 5 Git hosting solutions | List of best Git hosting tools

top-5-git-hosting-solutions
This is the era of DevOps where automation and collaboration is the key of success in software industry. This is the reason code availability is for everyone in the team is the necessity for today’s work environment. Developers are using Git nowadays for their code management and collaboration. But, this is not enough. Now you need to decide, which GIT hosting solution is good for your collaboration within your team or organization.
You can find so many options who offers hosting for GIT Repositories, which makes it really a challenge to find the right solution for your needs. Therefore, we are presenting you the list of top ten git hosting solutions.
Here is the list of Top Five Git Hosting Solutions
1. Bitbucket
 

 Bitbucket
Bitbucket formerly knows as stash belongs to one of the best software solution provider Atlassian who also developed popular tools like JIRA, Bamboo & Confluence. It offers both plans free & Commercial. Bitbucket is written in python.

Key Features
  • web-based hosting service
  • Unlimited private repositories
  • Supports private & Public repositories
  • Native integration (Jira, Confluence,Bamboo)
  • Flexible deployment models
  • Source tree – works with any git hosting
  • Branch permissions
  • Git Large File Storage (LFS)
2. GitHub

 GitHub

Github is one of the top Git hosting solution which is belongs to GitHub, Inc. and founded in the year 2008. As per the latest Github reports they have  52 million repositories which shows that they are one of the most trusted brands in the industry. Github is written also written in Ruby.
Key features
  • web-based hosting service
  • Unlimited private repositories
  • Built-in code review
  • Supports private and Public repositories
  • Support Many Programming language
  • Flexible hosting plans
  • Free to use for public and open source projects
  • Comes with Issue tracking & Wikis
3. GitLab

 GitLab

Gitlab is an open source git hosting service provider which belongs to GitLab Inc. Gitlab claimed themselves as modern software development. This tool is launched in 2011 is written in Ruby and Go. Gitlab is also amongst the most trusted brand which is also used by even NASA. GItlab has more than 1400 contributors which makes it one of the most reliable service provider.
Key Features
  • Unlimited public and private repos
  • web-based Git repository manager
  • wiki and issue tracking features
  • open source
  • Allow Project importing
  • Own Continuous Integration service
  • Collect and share reusable code
  • Control read/write permissions to specific branches
4. Microsoft Visual Studio Team Services

 Microsoft Visual Studio Team Services

Visual studio team services formerly known as Visual Studio Online is a Microsoft product which is launched in the year 2012. Visual studio is also a very good option for Git hosting. This platform includes not only code hosting but it has its own CI & agile planning tools for scrum and kanban teams. If you have 5 members team than you can use there most features for free but you need to upgrade your plans if you want to increase that number.

Key Features
  • Unlimited private code repositories
  • Customizable Dashboards
  • Branch Updates
  • Code reviews
  • Web Hooks & API Integration
  • unlimited free private git repositories
  • Get functionality with extensions
  • Semantic Code Search
  • Security – SOC compliance and multi-factor authentication
  • Built-in continuous integration and support for Jenkins and others tools
5. Perforce

 Perforce

Perforce or perforce helix is also amongst one the most reliable and trusted git hosting solution. Perforce was initially released in the year 1995 which makes it one the veteran player of the software industry. Recently they have introduced Git Swarm with Gitlab collaboration. It comes with similar features like Gitlab but in terms of security and scalability it is more reliable.

Key Features

  • All the power and flexibility of Git without compromise:
  • Access control is more fine-grained
  • Specific branches and files can be locked
  • Developers can “slice” big repositories and pull only what they need
  • Pull requests
  • Merge-request workflow
  • Issue tracking
  • Git powered Wiki
  • Project visibility & security
  • Automatically mirrors work into Helix mainline repository
SO, these are the top players currently trending in GIT hosting solutions. Hope this will help you while selecting your hosting solutions. One more thing, if you think that this list is missing any other solutions instead of this than feel free to share with us in the comment section below.
Tagged : / / / / / / / / / / / / / / / /

How to build when a change is pushed to GitHub in Jenkins?

build-when-a-change-is-pushed-to-github-in-jenkins
The GitHub plugin for Jenkins is the most basic plugin for integrating Jenkins with GitHub projects. If you are a GitHub user, this plugin enables you to:
  • Schedule your build
  • Pull your code and data files from your GitHub repository to your Jenkins machine
  • Automatically trigger each build on the Jenkins server, after each Commit on your Git repository

This saves you time and lets you incorporate your project into the Continuous Integration (CI) process.

How to Start Working with the GitHub Plugin for Jenkins
Install the Github Jenkins plugin
Go to “Manage Jenkins” –> “Manage Plugins” –> “Available” Tab –> Search for “GitHub plugin” and install it.
Configure the plugin with github accounts and keys
Go to “Manage Jenkins” –> “Configure System” –> Locate “Github” section and “Add Github Server”.

API URL – If you server is github.com, your “API URL” would be “https://api.github.com” Otherwise if you use GitHub Enterprise, specify its API endpoint here (e.g., https://ghe.acme.com/api/v3/).

Credentials – You can create your own personal access token in your account GitHub settings.
Token should be registered with scopes: Refer https://github.com/settings/tokens/new.
Add credentials (your Github token), Apply and “Test Connection”.

Open your Jenkins Project

a) Check the GitHub project checkbox and set the Project URL to point to your GitHub Repository

b) Under Source Code Management, check Git and set the Repository URL to point to your GitHub Repository
c) Under Build Triggers, check the “Build when a change is pushed to GitHub” checkbox
4. Install the Jenkins (GitHub plugin) and set a webhook to your Jenkins machine
a) From your GitHub repository, go to Settings and then to Integrations & Services
b) Click on Add Service and add ‘Jenkins (GitHub plugin)’

c) Set the Jenkins hook URL as the URL for your Jenkins machine, and add /github-webhook/



Congratulations! Every time you publish your changes to Github, GitHub will trigger your new Jenkins job.
Another Approach noted by suprakash
Actually if you do the web hook settings from Jenkins -> Github plugin configuration (mentioned above), you will still see webhooks get created in github. So , above two approaches basically doing the same thing.
I personally like it to create webhook from Github, because in this way you don’t have to share or store github user info in jenkins.
Steps : 1. Login into Github (with Admin) 2. Go to the repository you want to hook with jenkins 3. Click on settings tab -> webhooks & services 4. Click on Add Webhook 5. Enter payload url : like : http://:8080/github-webhook/ 6. Select content type as json 7. you are done

Now you do the changes and commit , you will see jenkins build get trigger automatically. Don’t forget to do the settings in jenkins jobs to start the build when push code in github.

Reference

Tagged : / / / / / / / /