Tuesday, January 22, 2013

How to reset security in Jenkins


One may accidentally set up security realm / authorization in such a way that you may no longer able to reconfigure Jenkins.
When this happens, you can fix this by the following steps:
  1. Stop Jenkins (the easiest way to do this is to kill the servlet container.)
  2. Go to $JENKINS_HOME in the file system and find config.xml file.
  3. Open this file in the editor.
  4. Look for the true element in this file.
  5. Replace true with false
  6. Remove the elements authorizationStrategy and securityRealm
  7. Start Jenkins
When Jenkins comes back, it's in the unsecured mode where everyone gets full access to the system.
If this is still not working, trying renaming or deleting config.xml.

https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

Sunday, January 20, 2013

How to Install JENKINS RedHat Servers


Here is the simple steps to install JENKINS on RHEL servers.

  • sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
  • sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
  • sudo yum install jenkins
Now start JENKINS Server
  •   sudo /etc/init.d/jenkins start
Same as above you can stop or restart jenkins server.

  •  sudo /etc/init.d/jenkins stop/restart 

Monday, January 7, 2013

How to create custom keystores to WSO2 CARBON servers

By default all wso2 carbon servers shipped with the "wso2carbon.jks" as a default key-store. But  default keystore is not recommended to use in production environment due to the security vulnerabilities. So in that case custom keyso