Showing posts with label build. Show all posts
Showing posts with label build. Show all posts

Saturday, April 23, 2016

CHUCK NORRIS plugin for Jenkins


Jenkins is a server-based software that helps you build and test your Software Projects continuously. It makes your life easier when integrating any changes to your projects. Once you have Jenkins configured , it is soooo easy to build and deploy new code, just a couple clicks and Jenkins will do the rest. You can even schedule builds and deploys, it is awesome.

I've been working with Jenkins for over a year, but just a couple months ago I noticed that there is a Chuck Norris plugin, yeap, now you can have Chuck Norris in your daily builds/deploys.

You can install the Chuck Norris Plugin for some humor. Once installed the plugin using the plugin manager, you can activate it on the job configuration page. Select "Add post-build action" -> "Activate Chuck Norris".


This plugin adds an absolutely delightful feature to Jenkins: depending if your build succeeds, fails, or is unstable, it will show a picture of Chuck Norris auto-adapting (that’s right, computer science it is!) to the build result!





and just in case you didn't know:

  • Chuck Norris can delete the Recycling Bin


Thursday, April 21, 2016

How to install MAVEN on Windows



Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

Maven addresses two aspects of building software: first, it describes how software is built, and second, it describes its dependencies. Contrary to preceding tools like Apache Ant, it uses conventions for the build procedure, and only exceptions need to be written down. An XML file describes the software project being built, its dependencies on other external modules and components, the build order, directories, and required plug-ins.

So, in other words, Maven will do the job managing your project, you just need to specify  the dependencies and it will help you building you project among other tasks, and no, it's not black magic, it's MAVEN, awesome, right?, and you know what is even better? ...it is FREE, so, Awesome X 2, =) (who doesn't like free stuff? I do)

Well, now I'm going to show you how to install Maven on your PC.

In order to install Apache Maven just download the Maven's zip file (here), and then unzip it to your local (I placed it in C:/) and proceed to configure the Windows environment variables:

Tools used:
  • JDK 1.7
  • Maven  

Install JDK, you can download it from here
Add JAVA_HOME to Windows environment variables. Right click on PC icon --> Advanced system settings --> Environment Variables





Now, download, unzip and place you Maven zip file in the folder you want (for example: C:/ )

Add M2_HOME and MAVEN_HOME environment variables:





Update PATH variable. We need to append Maven bin folder  %M2_HOME%\bin. This is going to help you run Maven's command everywhere:





Now, let's proceed to verify that we did everything fine. 
Verify Java, in command prompt type:  java -version
You should get something like this:




Now, let's verify Maven, in command prompt, type: mvn -version
If you get the next screen, you did the installation like a champ!





Now you have everything ready to start working in your Java projects using Maven and you can apply those ninja code moves you learned in YouTube. Enjoy!


Note: Just in case you didn't know, Maven 3.2 requires JDK 1.6 or above, while Maven version 3.0/3.1 requires JDK 1.5 or above.