<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by mukesh yadav on Medium]]></title>
        <description><![CDATA[Stories by mukesh yadav on Medium]]></description>
        <link>https://medium.com/@muku.hbti?source=rss-55fcb9246836------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BO0BSs6vdj0LrHoZ.</url>
            <title>Stories by mukesh yadav on Medium</title>
            <link>https://medium.com/@muku.hbti?source=rss-55fcb9246836------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:06:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muku.hbti/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Export/Import Jenkins Job and Their Plugins]]></title>
            <link>https://medium.com/@muku.hbti/export-import-jenkins-job-and-their-plugins-53cafa5869fa?source=rss-55fcb9246836------2</link>
            <guid isPermaLink="false">https://medium.com/p/53cafa5869fa</guid>
            <category><![CDATA[jenkins-job-builder]]></category>
            <category><![CDATA[export-import-data]]></category>
            <category><![CDATA[jenkins-pipeline]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[mukesh yadav]]></dc:creator>
            <pubDate>Thu, 27 Feb 2020 10:55:09 GMT</pubDate>
            <atom:updated>2020-08-31T13:02:17.977Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone welcomes back with new topics Export/Import Jenkins job and plugins. If you migrate your old Jenkins server to the new Jenkins server then this one is very helpful for you.</p><p>This can be done in two ways we digging out one by one. Let&#39;s start with a very easy step…</p><ol><li><strong>By your Jenkins server:</strong></li></ol><p>Step 1: Go to your Jenkins and click on the <strong>Manage Jenkins</strong> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*d4JN6K2zcpWg8Cg7lXcoRg.jpeg" /></figure><p>Step 2: Select <strong>Jenkins CLI </strong>option from the list of available options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*Z8t1nAyi5ajat0qgXUCIBQ.png" /></figure><p>Step 3: Download <strong>jenkins-cli.jar </strong>from the given arrow point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*TuD8Wt-XtaO-dERkTQ5q2Q.png" /></figure><p>Step 4: Once you have to download the jar you just run below command</p><p><strong>To export the Job.</strong></p><pre><strong>java -jar </strong><a href="http://192.168.120.75:8989/jnlpJars/jenkins-cli.jar"><strong>jenkins-cli.jar</strong></a><strong> -s &lt;your server url&gt; get-job &lt;JOB NAME&gt; &gt; &lt;JOB_NAME.xml&gt;<br>OR<br>java -jar </strong><a href="http://192.168.120.75:8989/jnlpJars/jenkins-cli.jar"><strong>jenkins-cli.jar</strong></a><strong> -s &lt;your server url&gt; -auth username:password get-job &lt;JOB NAME&gt; &gt; &lt;JOB_NAME.xml&gt;</strong></pre><p><strong>To Create/import the Job</strong></p><pre><strong>java -jar </strong><a href="http://192.168.120.75:8989/jnlpJars/jenkins-cli.jar"><strong>jenkins-cli.jar</strong></a><strong> -s &lt;your server url&gt; create-job &lt;NEW_JOB_NAME&gt; &lt; &lt;EXITING_JOB.xml&gt;<br>OR<br>java -jar </strong><a href="http://192.168.120.75:8989/jnlpJars/jenkins-cli.jar"><strong>jenkins-cli.jar</strong></a><strong> -s &lt;your server url&gt; -auth username:password create-job &lt;NEW_JOB_NAME&gt; &lt; &lt;EXITING_JOB.xml&gt;</strong></pre><p>For more Jenkins command refer to your <strong>Jenkins CLI </strong>and tap to any command to know more about that.</p><p><strong>****************** That&#39;s It *******************</strong></p><p>2. The second way to export and import the job is <strong>Butler plugin:</strong></p><p>To get started about <strong>Butler</strong> plugin refer to this link <a href="https://github.com/mlabouardy/butler">https://github.com/mlabouardy/butler</a>. Apart from that we just going show the right direction to get faster. Please follow these steps.</p><p><strong>Step 1:</strong> Open your terminal and run this command</p><p>sudo wget <a href="https://s3.us-east-1.amazonaws.com/butlercli/1.0.0/linux/butler">https://s3.us-east-1.amazonaws.com/butlercli/1.0.0/linux/butler</a></p><p>After success full download and saved then run below command.</p><pre>sudo chmod +x butler<br>sudo mv butler /usr/local/bin/</pre><p><strong>To export the Plugins</strong></p><pre>butler plugins export --server &lt;jenkins server url&gt;  --username admin --password admin</pre><p><strong>To import the plugins</strong></p><pre>butler plugins import --server &lt;jenkins server url&gt;  --username admin --password admin</pre><p><strong>To export the Jobs</strong></p><pre>butler jobs export --server &lt;jenkins server url&gt; --username admin --password admin</pre><p><strong>To import the Jobs</strong></p><pre>butler jobs import --server &lt;jenkins server url&gt; --username admin --password admin</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53cafa5869fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between Angular 2 and Angular 4]]></title>
            <link>https://medium.com/@muku.hbti/different-between-angular-2-and-angular-4-3ea02d7b7724?source=rss-55fcb9246836------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ea02d7b7724</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[change-in-angular-4]]></category>
            <category><![CDATA[difference]]></category>
            <category><![CDATA[angular-2-and-angular-4]]></category>
            <category><![CDATA[angular-4]]></category>
            <dc:creator><![CDATA[mukesh yadav]]></dc:creator>
            <pubDate>Tue, 11 Jul 2017 05:02:23 GMT</pubDate>
            <atom:updated>2017-07-11T08:33:47.738Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi there, Angular 4.0 has been arrived !!. We got little bit late to describe new feature but you should know some amazing feature. Like angular 1 and angular 2 there is no any path breaking between angular 2 and angular 4. But yes there are some extra feature had come to make angular 4 more powerful framework . Here we discuss what’s the new in angular 4(Also called angularfire).</p><ol><li><strong>Reduce the size of view engine :- </strong>There are more advanced change in AOT of angular so improve the compilation time. These changes also reduce almost 60% size of app.</li><li><strong>Introduce new Pipe :- </strong>Angular 4 introduce new <strong>‘titlecase’</strong> pipe <strong>‘|’</strong> so using this pipe you can change the first later capital of any words.</li><li><strong>ngIf and else :- </strong>Previously <strong>‘ngIf’</strong> is there but in angular 4 they also introduce <strong>‘else’</strong> so, now you can use if else block in html <strong>DOM</strong>.</li><li><strong>As keyword :- </strong>Angular 4 introduce new keyword called <strong>‘As’</strong> for simplification of <strong>‘let’</strong> as previous defined.</li><li><strong>Animation packages :- </strong>Separate animation package from angular core. Now animation have their own package i.e. @angular/platform-browser/animations.</li><li><strong>Rename Template :- </strong>Now template become <strong>‘ng-template’</strong>. You should use ng-template tag instead of template.</li><li><strong>Faster app :-</strong></li><li><strong>Search params :- </strong>In angular 4 you can give search params in http request. This become easy to use.</li><li><strong>New Form Validators :- </strong>There are many form validation given by angular 2 but there is one which is more concurrently use i.e. <strong>email</strong> validator. So now use <strong>email</strong> validator which is introduce in angular 4.</li><li><strong>Lazy loading :- </strong>Angular 4 provide lazy loading for module, page, provider etc. Load component when required So using this your app loading is fast.</li></ol><p>Happy coding…..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ea02d7b7724" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Read Incoming Message in Android]]></title>
            <link>https://medium.com/@muku.hbti/read-incoming-message-in-android-35db3c08709?source=rss-55fcb9246836------2</link>
            <guid isPermaLink="false">https://medium.com/p/35db3c08709</guid>
            <category><![CDATA[message-reading]]></category>
            <category><![CDATA[otp-verification]]></category>
            <category><![CDATA[sms-reading]]></category>
            <category><![CDATA[incoming-msg-android]]></category>
            <dc:creator><![CDATA[mukesh yadav]]></dc:creator>
            <pubDate>Sun, 09 Jul 2017 19:59:24 GMT</pubDate>
            <atom:updated>2017-07-09T20:07:13.023Z</atom:updated>
            <content:encoded><![CDATA[<p>Todays, Almost all application use text SMS for authentication purpose like OTP verification, Login via mobile etc. In this feature server send a text in any format and need to validate by the user that’s it. Using this modern feature user can save more time.</p><p>In this article, we are going to learn how to implement this feature in android app development. Create new project in android studio (You can choose any IDE).</p><p><strong>Project Architecture :-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*Z9WHNQTybFoRo2pY-8SNbw.png" /></figure><p>Let’s do code implmentation here</p><ol><li>Add a <strong>MessageReceiver.java</strong> (You can choose class name) for entry point when new sms received.</li></ol><pre><strong>package </strong>com.example.readmessage;</pre><pre><strong>import </strong>android.content.BroadcastReceiver;<br><strong>import </strong>android.content.Context;<br><strong>import </strong>android.content.Intent;<br><strong>import </strong>android.os.Bundle;<br><strong>import </strong>android.telephony.SmsMessage;<br><br><strong>public class </strong>MessageReceiver <strong>extends </strong>BroadcastReceiver {<br><br>    <strong>private static </strong>MessageListener <em>mListener</em>;<br><br>    @Override<br>    <strong>public void </strong>onReceive(Context context, Intent intent) {<br>        Bundle data = intent.getExtras();<br>        Object[] pdus = (Object[]) data.get(<strong>&quot;pdus&quot;</strong>);<br>        <strong>for</strong>(<strong>int </strong>i=0; i&lt;pdus.<strong>length</strong>; i++){<br>            SmsMessage smsMessage = SmsMessage.<em>createFromPdu</em>((<strong>byte</strong>[]) pdus[i]);<br>            String message = <strong>&quot;Sender : &quot; </strong>+ smsMessage.getDisplayOriginatingAddress()<br>                    + <strong>&quot;Email From: &quot; </strong>+ smsMessage.getEmailFrom()<br>                    + <strong>&quot;Emal Body: &quot; </strong>+ smsMessage.getEmailBody()<br>                    + <strong>&quot;Display message body: &quot; </strong>+ smsMessage.getDisplayMessageBody()<br>                    + <strong>&quot;Time in millisecond: &quot; </strong>+ smsMessage.getTimestampMillis()<br>                    + <strong>&quot;Message: &quot; </strong>+ smsMessage.getMessageBody();<br>            <em>mListener</em>.messageReceived(message);<br>        }<br>    }<br><br>    <strong>public static void </strong>bindListener(MessageListener listener){<br>        <em>mListener </em>= listener;<br>    }<br>}</pre><p>Let’s discuss what’s the code behind. First of all create <strong>MessageReceiver.java</strong> class and extends <strong>BroadcastReceiver </strong>class and override onReceive() method which has two argument first one is context, and second one is intent. The intent contains the PDU (Protocol Data Unit) object which is a protocol for transferring message. From this protocol get all object and <strong>SmsMessage</strong> object using <strong>SmsMessage.<em>createFromPdu</em>()</strong> method which take one argument of raw PDU. After creating message object we can get all information from this object and send back to UI(Any where you want) for sending this information I am using listener called (<strong>MessageListener.java</strong>) interface.</p><p>2. Now the time to create listener (MessageListener.java) interface. Code is here just use this.</p><pre><strong>package </strong>com.example.readmessage;<br><br><strong>public interface </strong>MessageListener {<br> <em>/**<br>  * To call this method when new message received and send back <br>  * </em><strong><em>@param message </em></strong><em>Message<br> */<br></em> <strong>void </strong>messageReceived(String message);<br>}</pre><p>3. Now implement this listener where you want to receive your sms body and register this listener. As we getting sms data back to my <strong>MainActivity.java </strong>. So my code is here</p><pre><strong>package </strong>com.example.readmessage;<br><br><strong>import </strong>android.support.v7.app.AppCompatActivity;<br><strong>import </strong>android.os.Bundle;<br><strong>import </strong>android.widget.Toast;<br><br><strong>public class </strong>MainActivity <strong>extends </strong>AppCompatActivity <strong>implements </strong>MessageListener {<br><br>    @Override<br>    <strong>protected void </strong>onCreate(Bundle savedInstanceState) {<br>        <strong>super</strong>.onCreate(savedInstanceState);<br>        setContentView(R.layout.<strong><em>activity_main</em></strong>);<br>        <em>//Register sms listener<br>        </em>MessageReceiver.<em>bindListener</em>(<strong>this</strong>);<br>    }<br><br>    @Override<br>    <strong>public void </strong>messageReceived(String message) {<br>        Toast.<em>makeText</em>(<strong>this</strong>, <strong>&quot;New Message Received: &quot; </strong>+ message, Toast.<strong><em>LENGTH_SHORT</em></strong>).show();<br>    }<br>}</pre><p>In this <strong>MainActivity.java</strong> file only register listener and override messageReceived() method which has only one argument called message. Here you can authenticate your OTP or do any thing with this message as per your requirements.</p><p>4. The last and very important things is open your AndroidMenifest.xml file and get permission and also entry Receiver. Here are complete code for manifest file is.</p><pre><em>&lt;?</em><strong>xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;</strong><em>?&gt;<br></em>&lt;<strong>manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    package=&quot;com.example.readmessage&quot;</strong>&gt;<br><br>    &lt;<strong>uses-permission android:name=&quot;android.permission.RECEIVE_SMS&quot; </strong>/&gt;<br>    &lt;<strong>uses-permission android:name=&quot;android.permission.READ_SMS&quot; </strong>/&gt;<br><br>    &lt;<strong>application<br>        android:allowBackup=&quot;true&quot;<br>        android:icon=&quot;@mipmap/ic_launcher&quot;<br>        android:label=&quot;@string/app_name&quot;<br>        android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;<br>        android:supportsRtl=&quot;true&quot;<br>        android:theme=&quot;@style/AppTheme&quot;</strong>&gt;<br>        &lt;<strong>activity android:name=&quot;.MainActivity&quot;</strong>&gt;<br>            &lt;<strong>intent-filter</strong>&gt;<br>                &lt;<strong>action android:name=&quot;android.intent.action.MAIN&quot; </strong>/&gt;<br><br>                &lt;<strong>category android:name=&quot;android.intent.category.LAUNCHER&quot; </strong>/&gt;<br>            &lt;/<strong>intent-filter</strong>&gt;<br>        &lt;/<strong>activity</strong>&gt;<br>        &lt;<strong>receiver android:name=&quot;.MessageReceiver&quot;</strong>&gt;<br>            &lt;<strong>intent-filter</strong>&gt;<br>                &lt;<strong>action android:name=&quot;android.provider.Telephony.SMS_RECEIVED&quot; </strong>/&gt;<br>            &lt;/<strong>intent-filter</strong>&gt;<br>        &lt;/<strong>receiver</strong>&gt;<br>    &lt;/<strong>application</strong>&gt;<br><br>&lt;/<strong>manifest</strong>&gt;</pre><p>5. Now Run you code and enjoy. Happy coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*cktCK7Pw0Z5arIVpvk9q9w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35db3c08709" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>