<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Change Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/change/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/change/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to Use Change Attributes Properties in jQuery?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-change-attributes-properties-in-jquery/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-change-attributes-properties-in-jquery/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 12:28:14 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[index.html]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[main.js]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[style.css]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9314</guid>

					<description><![CDATA[<p>So in this blog, we’re going to learn that How to Use Change Attributes Properties in jQuery? So let’s go [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-change-attributes-properties-in-jquery/">How to Use Change Attributes Properties in jQuery?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">So in this blog, we’re going to learn that How to Use Change <strong>Attributes Properties </strong>in <strong>jQuery</strong>?</p>



<p class="wp-block-paragraph">So let’s go ahead and do that for first in <strong>index.html</strong>, with help of <strong>style.css</strong> &amp; <strong>main.js</strong> and define-</p>



<script src="https://gist.github.com/ajcotocus/8b6faff509a712d408f93b5a9fc10458.js"></script>



<script src="https://gist.github.com/ajcotocus/cc2f0b1c50d70f500a440ff56d2c7c1a.js"></script>



<script src="https://gist.github.com/ajcotocus/719e46a031189111c5acffc2682efd2b.js"></script>



<p class="wp-block-paragraph">In this main.js To read the current value of an attribute, use <strong>attr()</strong> with only one argument: the name of the attribute you want to read. after that Retrieve the value of the <strong>href </strong>attribute of the &#8220;<strong>&lt;a></strong>&#8221; tag This is logged into the console. To see it, press <strong>F12</strong> in <strong>Firefox/Chrome</strong> to open the Developer Tools and click on the Console tab.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="609" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-113-1024x609.png" alt="" class="wp-image-9315" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-113-1024x609.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-113-300x178.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-113-768x457.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-113-1536x913.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-113.png 1586w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Change Attributes Properties in jQuery</figcaption></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-change-attributes-properties-in-jquery/">How to Use Change Attributes Properties in jQuery?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-change-attributes-properties-in-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Alter Table in MySql</title>
		<link>https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/</link>
					<comments>https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Joydeep M]]></dc:creator>
		<pubDate>Sat, 03 Apr 2021 12:42:14 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[alter table]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[where]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5794</guid>

					<description><![CDATA[<p>In this tutorial we will see the commands which we can use to make changes in our table (as per [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/">Alter Table in MySql</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this tutorial we will see the commands which we can use to make changes in our table (as per <strong>April 2k21</strong>).</p>



<ul class="wp-block-list"><li>To add a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>ADD </strong>column_name <strong>DATATYPE</strong>;</code></pre>



<ul class="wp-block-list"><li>To delete a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>DROP </strong>column_name;</code></pre>



<ul class="wp-block-list"><li>To change the data type of a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>MODIFY COLUMN </strong>column_name <strong>NEW DATA TYPE;</strong></code></pre>



<ul class="wp-block-list"><li>To rename a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE</strong> table_name <strong>CHANGE </strong>column_name <strong>NEW_COLUMN_NAME</strong>;</code></pre>



<ul class="wp-block-list"><li>To update the column as NOT NULL Constraint:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>MODIFY </strong>column_name <strong>DATATYPE NOT NULL;</strong></code></pre>



<ul class="wp-block-list"><li>To Sort the data in the Table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>SELECT </strong>"column_name" <strong>FROM </strong>"table-name" &#91;<strong>WHERE </strong>"condition"] <strong>ORDER BY </strong>"column_name" &#91;<strong>ASC/DESC</strong>];</code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/">Alter Table in MySql</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to revert the changes once its submitted in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 13:10:23 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[patchsets]]></category>
		<category><![CDATA[revert]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5229</guid>

					<description><![CDATA[<p>How to revert the changes once its submitted in Gerrit The Revert button is available if the change has been [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-5273" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to revert the changes once its submitted in Gerrit</strong></p>
<p><strong>The Revert button is available if the change has been submitted</strong>. This Reverts the change via creating a new one. When the Revert button is pressed, a panel will appear to allow the user to enter a commit message for the reverting change.</p>
<p>Once a revert change is created, the original author and any reviewers of the original change are added as reviewers and a message is posted to the original change linking to the revert.</p>
<p>However, <strong>patchsets can not be reverted</strong>. so first you have to checkout one of the previous patchset. you can get the command from Gerrit review board at each patchset download panel. After checking it out amend it to generate new commit hash then pushed again as a new patchset.</p>
<p>If I have multiple patch set versions for one change in Gerrit, You can only submit the latest patch set version. The design assumes that the most recent patch set is the one developers will review and test, and as such older patch sets can not be submitted.</p>
<p><strong>Good Read</strong><br />
http://www.saros-project.org/node/155</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is a Change and Patch set in Gerrit?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 12:57:45 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5226</guid>

					<description><![CDATA[<p>Here is the short and quick description of Gerrit key teminology. Change Every time you push a commit with a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/">What is a Change and Patch set in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-5280" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>Here is the short and quick description of Gerrit key teminology.</p>
<h3><strong>Change</strong></h3>
<p>Every time you push a commit with a new Change-Id Gerrit allocates a new change. Every change has a unique Change-Id and a Change Number. The change contains a number of patch sets, comments on the patch sets and a code review rating (+2, +1, 0, -1, -2). Each change has a dedicated page that shows information about it called individual change page. This includes dependencies between different changes, patch sets and the review comments.</p>
<h3>Submit</h3>
<p>Once a change has received a +2 in the Code Review and no negative voting in the other categories the last patchset can be submitted. This means Gerrit will now try to cherry-pick your patch set and mark the change as merged.</p>
<h3>Patch set</h3>
<p>If you want to modify your change, you don&#8217;t have to push a new change to Gerrit but only a new patch set . Imagine a patch sets as different versions or revisions of a change. Each patch set can receive inline comments. Gerrit uses the Change-Id of a commit message to identify patch sets of a change. This is why all patch sets of a change have the same Change-Id.</p>
<p>To create a new Patch when new changes are submitted<br />
<strong>Step 1: Install commit-msg hooks for gerrit</strong></p>
<pre class="brush: plain; title: ; notranslate">$ scp -p -P 29418 localhost:hooks/commit-msg .git/hooks/</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Step 2: Create normal commit and push (for Patchset1)</strong></p>
<pre class="brush: plain; title: ; notranslate">for example:

git add Server.java
git commit -m &quot;server added&quot;
git push origin HEAD:refs/for/master</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Step 3: After doing some changes to Server.java</strong></p>
<p>Finally to create new Patchset (Patchset 2)</p>
<pre class="brush: plain; title: ; notranslate">git add Server.java
git commit --amend
git push origin HEAD:refs/for/master
Repeat step 3 for further Patches</pre>
<p><strong>Understanding the Patch set in Git perspective</strong></p>
<p>Git is a very advanced distributed source code control system. Maintaining patch sets (often called a topic branch) in Git. Git includes a rebase capability that is very useful for a number of different operations related to maintaining a branch of code including moving a branch forward, moving a branch around on an upstream branch to look for breakage, and merging changesets to create patch files.</p>
<p>Git: How to create and apply patches</p>
<p><strong>Creating a patch</strong></p>
<pre class="brush: plain; title: ; notranslate">Make your changes and commit them.
Run $ git format-patch COMMIT_REFERENCE #to convert all commits since the referenced commit (not including it) into patch files.
$ git format-patch HEAD~~

This will create 2 files, one for each commit since HEAD~~, like these:
0001-make-stuff-more-awesome.patch
0002-allow-users-to-be-locked.patch</pre>
<p><strong>Applying patches</strong><br />
You can use git apply some.patch to have the changes from the .patch file applied to your current working directory. They will be unstaged and need to be committed by you.</p>
<pre class="brush: plain; title: ; notranslate">To apply a patch as a commit (with its commit message), use git am some.patch. \
For all patches to be applied, simply run:
$ git am *.patch

Note that in some previous version you could pass the latest patch filename of a list of patches to apply all previous patches as wel
$ git am 0002-allow-users-to-be-locked.patch # May no longer work for you</pre>
<p>You then have the 2 unpushed commits from the patch file created earlier.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/">What is a Change and Patch set in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Changed, Added and Deleted SLOC</title>
		<link>https://www.scmgalaxy.com/tutorials/changed-added-and-deleted-sloc/</link>
					<comments>https://www.scmgalaxy.com/tutorials/changed-added-and-deleted-sloc/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 07:11:50 +0000</pubDate>
				<category><![CDATA[source code analysis tools]]></category>
		<category><![CDATA[Add]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[CLOC]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[KLOC]]></category>
		<category><![CDATA[SLOC]]></category>
		<category><![CDATA[Source lines of code]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4584</guid>

					<description><![CDATA[<p>An important consideration for Software Project Managers is whether the requirements are being altered in a given project without their [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/changed-added-and-deleted-sloc/">Changed, Added and Deleted SLOC</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>An important consideration for Software Project Managers is whether the requirements are being altered in a given project without their knowledge or consent. The impact of unauthorized or unscheduled departure from requirements can lead to considerable problems in maintaining and managing large source projects.</p>
<p>Having received requests from several major C/C++ and Java projects to measure ‘changes&#8217; in source code projects, Power Software was commissioned to manufacture an automated tool to measure changed lines of source code.</p>
<p>The first question we asked was &#8216;are there any existing tools that can already accomplish this task?&#8217; The obvious starting place was &#8216;Change Management&#8217; tools like CMVC (Configuration Management Version Control) systems. These tools indicate which files have changed between projects but do not gather and present the information in the format our customers’ required. One problem with CMVC systems was that a file shown to be ‘changed’ might have changed only by time and date. This is misleading if we are looking for actual changes in source code.</p>
<p>The next place we looked was at existing Software Metrics tools. These tools measure source code parameters including SLOC (source lines of code). However it is possible that a Software Metrics tool could report that the compared files or projects have the same total number of source lines but these could have changed intrinsically. The actual lines of code could have changed but the total number of lines will be unchanged so the &#8216;changed line&#8217; is not detected.</p>
<p>For our customers the particular information required is &#8216;changed source lines of code&#8217;, &#8216;added source lines of code&#8217; and &#8216;deleted source lines of code&#8217;. This needs to be gathered across two releases of the same project to show exactly what has &#8216;changed&#8217;. The information needs to be presented as &#8216;changed lines&#8217; at the file and project level to assist management in their job of maintaining highest quality through proper control mechanisms.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/changed-added-and-deleted-sloc/">Changed, Added and Deleted SLOC</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/changed-added-and-deleted-sloc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to build when a change is pushed to Bitbucket</title>
		<link>https://www.scmgalaxy.com/tutorials/build-when-a-change-is-pushed-to-bitbucket/</link>
					<comments>https://www.scmgalaxy.com/tutorials/build-when-a-change-is-pushed-to-bitbucket/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 01 Aug 2017 18:10:46 +0000</pubDate>
				<category><![CDATA[Source Code Management]]></category>
		<category><![CDATA[Bitbucket]]></category>
		<category><![CDATA[Bitbucket Tutorial]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Push]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/08/01/build-when-a-change-is-pushed-to-bitbucket/</guid>

					<description><![CDATA[<p>&#160; Bitbucket plugin is designed to offer integration between Bitbucket and Jenkins. &#160; It exposes a single URI endpoint that [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/build-when-a-change-is-pushed-to-bitbucket/">How to build when a change is pushed to Bitbucket</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="size-full wp-image-2716 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/08/bitbucket-tutorials.png" alt="bitbucket-tutorials" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/08/bitbucket-tutorials.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/08/bitbucket-tutorials-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div></div>
<p>&nbsp;</p>
<div>Bitbucket plugin is designed to offer integration between Bitbucket and Jenkins.</div>
<div></div>
<p>&nbsp;</p>
<div>It exposes a single URI endpoint that you can add as a WebHook within each Bitbucket project you wish to integrate with. This single endpoint receives a full data payload from Bitbucket upon push (see their documentation), triggering compatible jobs to build based on changed repository/branch.</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Step 1 &#8211;</strong> Install &#8220;Bitbucket Plugin&#8221; at your Jenkins</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Step 2 &#8211;</strong> Add a normal Post as Hook to your Bitbucket repository (Settings -&gt; Hooks) and use following url:</div>
<p>&nbsp;</p>
<div>https://YOUR.JENKINS.SERVER:PORT/bitbucket-hook/</div>
<div>and if you have setup authentication on jenkins then URL must be like</div>
<div></div>
<p>&nbsp;</p>
<div>https://USERNAME:PASSWORD@YOUR.JENKINS.SERVER:PORT/bitbucket-hook/</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Step 3 &#8211;</strong> Configure your Jenkins project as follows:</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Step 4 &#8211;</strong> Under build trigger enable Build when a change is pushed to BitBucket</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Step 5 &#8211;</strong> under Source Code Management select GIT; enter your credentials and define Branches to build (like **feature/*)</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Note 1 &#8211;</strong> Make sure to include the slash (&#8216;/&#8217;) on the end of the URL or the hook won&#8217;t work.</div>
<p>&nbsp;</p>
<div></div>
<div><strong>Note 2 &#8211;</strong> Please read the BitBucket Plugin info page as well <a href="https://wiki.jenkins.io/display/JENKINS/BitBucket+Plugin" target="_blank" rel="noopener">https://wiki.jenkins.io/display/JENKINS/BitBucket+Plugin</a></div>
<div></div>
<p>&nbsp;</p>
<div><strong>Reference 1  </strong></div>
<div><a href="https://confluence.atlassian.com/bamboo/repository-triggers-the-build-when-changes-are-committed-289276902.html" target="_blank" rel="noopener">https://confluence.atlassian.com/bamboo/repository-triggers-the-build-when-changes-are-committed-289276902.html</a></div>
<div></div>
<div><strong>Reference 2 &#8211; Login issues with Jenkins url</strong></div>
<div><a href="https://www.scmgalaxy.com/tutorials/how-to-trigger-builds-remotely-in-jenkins">https://www.scmgalaxy.com/tutorials/how-to-trigger-builds-remotely-in-jenkins</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/build-when-a-change-is-pushed-to-bitbucket/">How to build when a change is pushed to Bitbucket</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/build-when-a-change-is-pushed-to-bitbucket/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to build when a change is pushed to GitHub in Jenkins?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-build-when-a-change-is-pushed-to-github-in-jenkins/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-build-when-a-change-is-pushed-to-github-in-jenkins/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 15 Jan 2017 02:30:34 +0000</pubDate>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[GitHub Plugin]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Jenkins Guide]]></category>
		<category><![CDATA[Jenkins Tutorials]]></category>
		<category><![CDATA[Push]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/01/15/how-to-build-when-a-change-is-pushed-to-github-in-jenkins/</guid>

					<description><![CDATA[<p>The GitHub plugin for Jenkins is the most basic plugin for integrating Jenkins with GitHub projects. If you are a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-build-when-a-change-is-pushed-to-github-in-jenkins/">How to build when a change is pushed to GitHub in Jenkins?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2963 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/how-to-build-when-a-change-.png" alt="build-when-a-change-is-pushed-to-github-in-jenkins" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/how-to-build-when-a-change-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/how-to-build-when-a-change--300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div>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:</div>
<div></div>
<ul>
<li>Schedule your build</li>
<li>Pull your code and data files from your GitHub repository to your Jenkins machine</li>
<li>Automatically trigger each build on the Jenkins server, after each Commit on your Git repository</li>
</ul>
<div></div>
<div>
<p>This saves you time and lets you incorporate your project into the Continuous Integration (CI) process.</p>
<div><strong>How to Start Working with the GitHub Plugin for Jenkins</strong></div>
<div></div>
<div><strong>Install the Github Jenkins plugin</strong></div>
<div>Go to &#8220;Manage Jenkins&#8221; &#8211;&gt; &#8220;Manage Plugins&#8221; &#8211;&gt; &#8220;Available&#8221; Tab &#8211;&gt; Search for &#8220;GitHub plugin&#8221; and install it.</div>
<div></div>
<div></div>
<div><strong>Configure the plugin with github accounts and keys</strong></div>
<div>Go to &#8220;Manage Jenkins&#8221; &#8211;&gt; &#8220;Configure System&#8221; &#8211;&gt; Locate &#8220;Github&#8221; section and &#8220;Add Github Server&#8221;.</div>
<div><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks2.png"><img loading="lazy" decoding="async" class="alignnone wp-image-496 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks2.png" alt="" width="1301" height="378" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks2.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks2-300x87.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks2-768x223.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks2-1024x298.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a></div>
<div>
<p>API URL &#8211; If you server is github.com, your &#8220;API URL&#8221; would be &#8220;https://api.github.com&#8221; Otherwise if you use GitHub Enterprise, specify its API endpoint here (e.g., <a href="https://ghe.acme.com/api/v3/)">https://ghe.acme.com/api/v3/)</a>.</p>
</div>
<div></div>
<div>Credentials &#8211; You can create your own personal access token in your account GitHub settings.</div>
<div>Token should be registered with scopes: Refer https://github.com/settings/tokens/new.</div>
<div></div>
<div>Add credentials (your Github token), Apply and &#8220;Test Connection&#8221;.<br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks3.png"><img loading="lazy" decoding="async" class="alignnone wp-image-497 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks3.png" alt="" width="1301" height="369" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks3.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks3-300x85.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks3-768x218.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks3-1024x290.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a><br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks4.png"><img loading="lazy" decoding="async" class="alignnone wp-image-498 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks4.png" alt="" width="1040" height="772" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks4.png 1040w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks4-300x223.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks4-768x570.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks4-1024x760.png 1024w" sizes="auto, (max-width: 1040px) 100vw, 1040px" /></a></div>
<div></div>
<div></div>
<div><strong>Open your Jenkins Project</strong></div>
<div>
<p>a) Check the GitHub project checkbox and set the Project URL to point to your GitHub Repository</p>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks5.png"><img loading="lazy" decoding="async" class="alignnone wp-image-499 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks5.png" alt="" width="1301" height="352" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks5.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks5-300x81.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks5-768x208.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks5-1024x277.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a></p>
</div>
<div></div>
<div>b) Under Source Code Management, check Git and set the Repository URL to point to your GitHub Repository<br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks6.png"><img loading="lazy" decoding="async" class="alignnone wp-image-500 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks6.png" alt="" width="1301" height="559" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks6.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks6-300x129.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks6-768x330.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks6-1024x440.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a></div>
<div></div>
<div>c) Under Build Triggers, check the “Build when a change is pushed to GitHub” checkbox<br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks7.png"><img loading="lazy" decoding="async" class="alignnone wp-image-501 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks7.png" alt="" width="1301" height="319" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks7.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks7-300x74.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks7-768x188.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks7-1024x251.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a></div>
<div></div>
<div></div>
<div><strong>4. Install the Jenkins (GitHub plugin) and set a webhook to your Jenkins machine</strong></div>
<div>a) From your GitHub repository, go to Settings and then to Integrations &amp; Services</div>
<div>b) Click on Add Service and add ‘Jenkins (GitHub plugin)’</div>
<div>
<p>c) Set the Jenkins hook URL as the URL for your Jenkins machine, and add /github-webhook/</p>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks8.png"><img loading="lazy" decoding="async" class="alignnone wp-image-502 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks8.png" alt="" width="1301" height="707" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks8.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks8-300x163.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks8-768x417.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks8-1024x556.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a><br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks9.png"><img loading="lazy" decoding="async" class="alignnone wp-image-503 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks9.png" alt="" width="1301" height="553" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks9.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks9-300x128.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks9-768x326.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks9-1024x435.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a><br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks10.png"><img loading="lazy" decoding="async" class="alignnone wp-image-504 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks10.png" alt="" width="1301" height="844" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks10.png 1301w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks10-300x195.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks10-768x498.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/01/github-jenkins-integration-hooks10-1024x664.png 1024w" sizes="auto, (max-width: 1301px) 100vw, 1301px" /></a></p>
</div>
<div></div>
<div><strong>Congratulations! Every time you publish your changes to Github, GitHub will trigger your new Jenkins job.</strong></div>
<div></div>
<div></div>
<div><strong>Another Approach noted by suprakash</strong></div>
<div>Actually if you do the web hook settings from Jenkins -&gt; Github plugin configuration (mentioned above), you will still see webhooks get created in github. So , above two approaches basically doing the same thing.</div>
<div></div>
<div>I personally like it to create webhook from Github, because in this way you don&#8217;t have to share or store github user info in jenkins.</div>
<div></div>
<div>Steps : 1. Login into Github (with Admin) 2. Go to the repository you want to hook with jenkins 3. Click on settings tab -&gt; webhooks &amp; 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</div>
<div></div>
<div>
<p>Now you do the changes and commit , you will see jenkins build get trigger automatically. Don&#8217;t forget to do the settings in jenkins jobs to start the build when push code in github.</p>
<p><strong>Reference</strong></p>
<div><a href="https://www.blazemeter.com/blog/how-start-working-github-plugin-jenkins" target="_blank" rel="noopener">https://www.blazemeter.com/blog/how-start-working-github-plugin-jenkins</a></div>
<div><a href="https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin" target="_blank" rel="noopener">https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin</a></div>
<div><a href="http://stackoverflow.com/questions/30576881/jenkins-build-when-a-change-is-pushed-to-github-option-is-not-working" target="_blank" rel="noopener">http://stackoverflow.com/questions/30576881/jenkins-build-when-a-change-is-pushed-to-github-option-is-not-working</a></div>
</div>
</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-build-when-a-change-is-pushed-to-github-in-jenkins/">How to build when a change is pushed to GitHub in Jenkins?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-build-when-a-change-is-pushed-to-github-in-jenkins/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
