Tuesday, April 28, 2015

must-have jenkins plugins

  • Git 
  • Git Client
  • Git Server
  • Disk Usage
  • Build Flow
  • Build Pipeline
  • Parameterized Trigger
  • Build Monitor
  • Build Name Setter
  • Cucumber Test Result
  • Cobertura
  • Checkstyle
  • PMD
  • Priority Sorter
  • Join
  • Build Trigger BadgeCopy Artifact
  • Radiator View
  • Dashboard View
  • Warnings
  • JDK Parameter
  • Multiple SCMs
  • JaCoCo
  • Performance
  • Thinbackup
  • Timestamper
  • Chuck Norris
  • JobConfigHistory
  • SafeRestart

how to install jenkins update1

previous platform

  • windows 7- 64 bit
  • java version "1.7.0_40"
  • apache-maven 3.1.0
  • eclipse Kepler 4.3.1
  • m2e - Maven Integration for Eclipse-      http://www.eclipse.org/m2e/download/
  • artifactory-3.0.3
  • jenkins 1.535

current platform

  • windows 7- 64 bit
  • java version "1.8.0_45"
  • Apache Maven 3.3.1
  • Apache Ant(TM) version 1.9.4
  • Eclipse Java EE IDE for Web Developers. Version: Luna Service Release 1a (4.4.1)
  • Artifactory version 3.5.3
  • Apache Tomcat/8.0.20
  • Jenkins ver. 1.611

Problem: when upgraded to jdk 1.8.x it is not possible to upgrade jenkins by putting war file.Therefore platform should be built from scratch.


to verify installations on command prompt

maven
mvn --version
system variable
M2=C:\Downloads\apache-maven\bin
M2_HOME=C:\Downloads\apache-maven
MAVEN_OPTS=-Xms256m -Xmx512m


jdk
java -version
system variable
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_45
path variable
%JAVA_HOME%\bin;

ant
ant -version
system variable
ANT_HOME=C:\Downloads\apache-ant
path variable
%ANT_HOME%\bin

Tuesday, April 21, 2015

how to install hadoop ubuntu

determine hadoop version if exists on ubuntu

how to mongodb win7

configure port
mongod --dbpath C:\Users\eyup\Downloads\mongodata --port 27017

configure log file for database
mongod --dbpath C:\Users\eyup\Downloads\mongodata --port 27017 --logpath C:\Users\eyup\Downloads\mongodata\logs\mongodb.log


run mongodb with configuration file.syntax problems with command prompt experienced

mongod -f C:\Users\eyup\Downloads\mongodata\config\mongodb.cfg

mongod -f "C:\Users\eyup\Downloads\mongodata\config\mongodb.cfg"

mongod --config "C:\Users\eyup\Downloads\mongodata\config\mongodb.cfg"


mongod --config C:\Users\eyup\Downloads\mongodata\config

mongod.exe --config C:\Users\eyup\Downloads\mongodata\config\mongodb.conf

mongod.exe -f C:\Users\eyup\Downloads\mongodata\config\mongodb.conf

how to install mongodb ubuntu

First import public key of 10gen repository in our system
 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
 

For Ubuntu:
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list

sudo apt-get update
sudo apt-get install mongodb-org

install robomongo app

sudo apt-get install robomongo-0.8.4-i386$
tar xvfz robomongo-0.8.4-i386.tar.gz
 robomongo-0.8.4-i386/bin$ ./robomongo

ubuntu@ubuntu:~$ sudo service mongod stop
mongod stop/waiting
ubuntu@ubuntu:~$ sudo service mongod start
mongod start/running, process 19201
ubuntu@ubuntu:~$ mongo --version
MongoDB shell version: 2.6.4





 

how to install mongodb windows8

platform
Windows Server 2008 R2 Standart 64 bit

download
mongodb-win32-x86_64-2008plus-2.6.4
extract




run mongod          
connect test
run with config file?
Run as service?

Mongodb gui for windows
Robomongo-0.8.4-i386


Friday, April 10, 2015

how to proxy with apache maven

Maven local settings
C:\Users\jupiter\.m2

Maven Global settings
C:\apache-maven\conf


Copy  C:\apache-maven\conf\settings into C:\Users\jupiter\.m2

Edit and add in settings.xml

  <!-- proxies
   | This is a list of proxies which can be used on this machine to connect to the network.
   | Unless otherwise specified (by system property or command-line switch), the first proxy
   | specification in this list marked as active will be used.
   |-->
  <proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>x.x.x.x</host>
      <port>8080</port>
   </proxy>
  
  </proxies>