Showing posts with label Creation. Show all posts
Showing posts with label Creation. Show all posts

Tuesday, 2 January 2018

Conda Commands

Sharing some CONDA commands which fasten the administration of different python environment. All these commands are available on Anaconda Site 

Like the below page to get update

Wednesday, 19 October 2016

Jenkins with Windows #3

Continuing my last posts (Jenkins with Windows #1 & Jenkins with Windows #2)..I am adding some more tips or solution with Jenkins installation.

Install Jenkins as a Windows service - 
You can follow the Jenkins Wiki page to create a windows service for jenkins so whenever you have to start/stop/restart, you no need to open a command prompt and type some commands.
It will install as a service in windows which you can see in services (services.msc).  Please find the page link as below -

Jenkins Wiki Page Link - Install Jenkins as a Windows service

Configuring Jenkins as a Windows service -
When you install jenkins as windows service, you have to change/check jenkins.xml file created in JENKINS_HOME directory.

If you are using port other than 8080, Do the below changes in jenkins.xml Else leave as it is.

    if you'd like to run Jenkins with a specific version of Java, specify a full path to java.exe.
    The following value assumes that you have java in your PATH.
  <arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=9090 --webroot="%BASE%\war"</arguments>

Change the httpPort to port where you want to run your jenkins and then restart the jenkins service. Now you can access jenkins on http://localhost:9090

Like the below page to get update

Tuesday, 18 October 2016

Jenkins with Windows #2

In last post, we covered What is jenkins and it's benefits ( Today we are going to cover it's installtion on windos.

Prerequisite & Installation Steps:

1. Your system should have latest java installed and java path should be configured. You can check it as below - 
2.  Download the letest win-bash which is required by Jenkin -

3. Extract the win-bash zip file and add the folder path to system environment variable PATH. You can check whether it is configured it or not by executing linux command

4. Check if your 8080 port is available
              netstat -ano | findstr 8080
 If you get any output like below, It means 8080 port is not available. 

5. Configure the JENKINS_HOME variable (add JENKINS_HOME in environment variable and add JENKINS_HOME into PATH variable too.

 6. Add "C:\Windows\SysWOW64" in your PATH

7. Go to JenKins home page -
8. Download the latest jenkins.war files by clicking on Download Jenkins

9. Execute the below command to install the jenkins

If your 8080 port is available then -
               java -jar jenkins.war
               java -jar jenkins.war --httpPort=9090 (you can give any available port)

10. When installation is complete, (Do not close your installation command prompt) Open below link in web browser -
       This will route you too, very first screen of jenkins as below -

11. The password you can get in either installation log as below Or the directory mentioned in the page - 

12. After successful login, you will be moved to plugin screen (Choose Install suggested plugins) -

 Plugin installation -

12. After Plugin installation, create a new admin user - 
13. After user creation, Choose Save and Close
14. Refresh the page and login with new admin credentials you created.

15. Jenkins Installation is completed.

 In next post, we will see How to install Jenkins as windows service and What if you missed the new admin user creation.

Like the below page to get update