Published April 05, 2019 by

Deploy Java Web App in Elastic Beanstalk with Jenkins

In this tutorial, we will learn how to automatic update Java Web application in AWS Elastic Beanstalk.

I assume you have already set up elastic beanstalk application in AWS and it's up and running.

Step 1: Create an AWS IAM user and Credentials

Go to AWS > IAM > Users > Add User

Here Create a user with any name (ex. JenkinsBeanstalk) and attach AWSElasticBeanstalkFullAccess policy.


After a user created AWS gives Access Key ID and Secret Access Key. Keep store those two strings in a file. we need it later.

Step 2: Install Jenkins Plugin

Install the AWS Elastic Beanstalk Deployment Plugin.

Open Jenkins: Manage Jenkins > Mange Plugins > Available

Step 3: Configure Credentials

Open Jenkins: Jenkins > Credentials > System > Global credentials (unrestricted) > Add Credentials 




Step 4: Configure Job

In Jenkins Job keep Scroll down to the Build option and Add build step and Select AWS Elastic Beanstalk.



Inside AWS Elastic Beanstalk wizard fill up all details related your app. for reference see below image.



Click on Save button complete the job.

Start the Build

Click Build Now 



Read More
Published March 12, 2019 by

Kernel IMAP to Office 365 – Product Review

With the advancement in cloud technologies, Office 365 is becoming one of the most popular platforms for organizations. Therefore, many businesses are planning to move their data to Office 365, including IMAP mailboxes.
But, migrating from IMAP mailboxes is not that easy as seems to be. Though Microsoft provides some free methods to migrate data from IMAP mailboxes to Office 365, that is not much reliable and simple. So, businesses prefer using a third-party tool that offers straight and quick migration of IMAP mailboxes to Office 365.
Kernel for IMAP to Office 365 is one such utility among many migration tools. But there are some functionalities that make it stand apart from others, such as:
  • Migrate single/multiple mailboxes to Office 365/Exchange Server
  • Facility to migrate public folders and archive mailboxes
  • Migrate multiple mailboxes using CSV file
  • Smart filtering options to migrate desired mailboxes data
  • Support migration from almost every IMAP email server
  • Allow saving migration report summary in CSV format
  • Compatible with every version of Windows OS including Windows 10/8.1/8 etc.

In this article, we’ll discuss in detail about the Kernel IMAP to Office 365 migrator utility. So, let’s find out what else this tool has to offer.
Problems that Kernel IMAP to Office 365 can Solve
According to experts or MVP’s, Kernel IMAP to Office 365 is said to be the most valuable and effective tool in solving problems related to IMAP to Office 365 migration. Some of the common challenges that organizations often face are:
Multiple Mailbox Migration from IMAP Email Servers
Users often have multiple IMAP mailboxes of users, and when it comes to migrating all these mailboxes to Office 365 together, it’s not an easy task. But, Kernel IMAP to Office 365 allow you to migrate multiple IMAP mailboxes to Office 365 easily. You can individually add the mailboxes or use a CSV file to upload multiple mailboxes.
Migrating Specific Emails Based on Requirements
Sometimes, all the data in IMAP mailboxes is not crucial, such as user mailboxes that are of no use anymore. Therefore, businesses like to save data on the cloud by migrating only specific emails from IMAP user mailboxes. You can achieve this task easily with Kernel IMAP to Office 365 smart filtering options, that allow you to migrate data based on date, item type, from, to, etc.
Compatibility for All IMAP Email Servers
Third-party IMAP migration tools often don’t have compatibility with every IMAP email server. But, Kernel IMAP to Office 365 provides support to almost every IMAP email server, including Yahoo, Gmail, Amazon, Zimbra, AOL, WorkMail, GMX, and many more.
After knowing these fantastic features, you may really want to know its working process. To make it easy for you, we performed an IMAP to Office 365 migration with this tool. And the process was very smooth and amazing. Let’s have a clear look at its working process.
Installation Process
Installing Kernel IMAP to Office 365 is very simple and quick. You just need to download the tool and double-click on it. The installation window will appear on the screen. Now, follow the instructions and read the agreement to install Kernel IMAP to Office 365 on your system. After installing the tool on the specific location, you can launch the software by double-clicking on it.
Migrating Gmail to Office 365
We performed the task of migrating Gmail mailboxes to Office 365 with Kernel IMAP to Office 365 tool. Here we have mentioned the detailed migration process to elaborate on how this utility works.
1. Launch the tool and click Add Source on the home screen of the tool.

2. Enter the details for your IMAP account like an email server, email ID, port number, and then click Add. Here we have used Gmail as an email server.

3. Now, add Office 365 as a destination. Click Add destination and enter the details for Office 365 account. The Office 365 account will be added within seconds.

4. After adding both source and destination, select the type of mailbox that you want to migrate and click the Migrate button at the bottom right corner of the tool.

5. The smart filtering options will appear on the screen. You can set filters according to your requirements based on item type, date, folders, deleted items, etc. and click Start Migration.

6. The tool will start migrating your emails to Office 365. After the completion of the process, a notification will appear on the screen displaying Process Completed. Click OK to end the process.

7. If you want to save this migration report to a CSV format, then click Save report to CSV.

As you can see, the process of migrating Gmail mailboxes to Office 365 was quick and easy. Similarly, you can migrate other IMAP mailboxes to Office 365 easily.
Conclusion
Based on our experience with Kernel IMAP to Office 365 tool, we would recommend this software to every individual who wants to migrate from IMAP mailboxes to Office 365. Not only it is a cost-effective utility, but it also provides some unique features that can be helpful to every user. https://www.nucleustechnologies.com/imap-to-office-365/
Read More
Published March 11, 2019 by

Generate Android APK from source code in Jenkins

In this tutorial, we will learn step by step how to generate android APK from source code in Jenkins. I assume you have already installed Jenkins.



Setup Android SDK

create directory
 mkdir -p /var/lib/jenkins/android-sdk/ 

go to an android-SDK directory
cd /var/lib/jenkins/android-sdk/  

Perform below command for setup android SDK.
 # download android sdk  
 sudo curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -o android-sdk.zip  
   
 # install unzip command  
 sudo apt-get install unzip  
   
 # unzip into this folder  
 sudo unzip android-sdk.zip -d .  
   
 # remove the zip file  
 sudo rm android-sdk.zip  

Install Plugins

Install Android Emulator and Gradle Plugin.

Open Jenkins: Manage Jenkins >> Mange Plugins >> Available




Configure Jenkins

Open Jenkins: Manage Jenkins >> Configure System >> Global properties >> Environment variables  and add:

ANDROID_HOME : /var/lib/jenkins/android-sdk
JAVA_HOME : /usr/lib/jvm/java-8-oracle

Create Android build job


  • Open Jenkins -> New Item. Enter any job name. Choose Freestyle project. Press OK.
  • Source Code Management -> Check Git and give:
    • Repository URL: Git URL to your repo. Take this URL from Github. It should be a format of git@github.com:{username}/{repo}.git
    • Credentials: Select the one you created before.
    • Branches to build: branch_name
  • Build >> Execute shell
 chmod +x gradlew  
 ./gradlew clean  
 ./gradlew assembleDebug  


  • Post-build Actions -> Archive artifacts: **/*.apk

Press Save.

Start the Build

From the job dashboard, click Build Now and you will see job run.


After successfully build you can see generated an android app in project information.


Read More
Published February 08, 2019 by

Configure GitHub Webhook in Jenkins Job

In this tutorial, we will learn how to Jenkins automatically create a build if it detects changes to a GitHub repository.

GitHub webhooks feature in Jenkins is used to trigger the build whenever a developer commits something to the master branch.


Read More
Published February 02, 2019 by

AWS S3 LifeCycle rules for moving data from S3 to Glacier

In this tutorial, we learn how do you move your data from Amazon S3 to Glacier? Using Lifecycle Policies. These policies are basically just rules that you can set up to move the data from S3 to Glacier at specific times. Let’s learn how to create a Lifecycle Policy.

Read More