Advertisement
Guest User

Jenkin eduraka

a guest
Dec 17th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.14 KB | None | 0 0
  1. Dependency Installed:
  2.   gd.x86_64 0:2.0.35-26.el7                                gperftools-libs.x86_64 0:2.4-8.0.1.el7                    libXpm.x86_64 0:3.5.11-3.el7                    
  3.   libunwind.x86_64 2:1.1-5.el7_2.2                         nginx-all-modules.noarch 1:1.10.2-1.el7                   nginx-filesystem.noarch 1:1.10.2-1.el7          
  4.   nginx-mod-http-geoip.x86_64 1:1.10.2-1.el7               nginx-mod-http-image-filter.x86_64 1:1.10.2-1.el7         nginx-mod-http-perl.x86_64 1:1.10.2-1.el7        
  5.   nginx-mod-http-xslt-filter.x86_64 1:1.10.2-1.el7         nginx-mod-mail.x86_64 1:1.10.2-1.el7                      nginx-mod-stream.x86_64 1:1.10.2-1.el7          
  6.  
  7. Complete!
  8. [root@ol1 jenkins]# cd..
  9. -bash: cd..: command not found
  10. [root@ol1 jenkins]# cd ~
  11. [root@ol1 ~]# sudo vi /etc/nginx/nginx.conf
  12. [root@ol1 ~]# sudo systemctl start nginx.service
  13. [root@ol1 ~]# sudo systemctl enable nginx.service
  14. Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
  15. [root@ol1 ~]# sudo firewall-cmd --zone=public --permanent --add-service=http
  16. success
  17. [root@ol1 ~]# sudo firewall-cmd --reload
  18. success
  19. [root@ol1 ~]# ip addr
  20. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
  21.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  22.     inet 127.0.0.1/8 scope host lo
  23.        valid_lft forever preferred_lft forever
  24.     inet6 ::1/128 scope host
  25.        valid_lft forever preferred_lft forever
  26. 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  27.     link/ether 08:00:27:8a:1f:bd brd ff:ff:ff:ff:ff:ff
  28.     inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
  29.        valid_lft 84627sec preferred_lft 84627sec
  30.     inet6 fe80::a00:27ff:fe8a:1fbd/64 scope link
  31.        valid_lft forever preferred_lft forever
  32. 3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  33.     link/ether 08:00:27:d3:ef:42 brd ff:ff:ff:ff:ff:ff
  34.     inet 192.168.1.18/24 brd 192.168.1.255 scope global dynamic enp0s8
  35.        valid_lft 1830sec preferred_lft 1830sec
  36.     inet6 fe80::a00:27ff:fed3:ef42/64 scope link
  37.        valid_lft forever preferred_lft forever
  38. [root@ol1 ~]# /var/lib/jenkins/secrets/initialAdminPassword
  39. -bash: /var/lib/jenkins/secrets/initialAdminPassword: Permission denied
  40. [root@ol1 ~]# cat /var/lib/jenkins/secrets/initialAdminPassword
  41. bbfab1db471946028408c35d5109e6a4
  42. [root@ol1 ~]# clear
  43.  
  44. [root@ol1 ~]# /var/lib/jenkins
  45. -bash: /var/lib/jenkins: Is a directory
  46. [root@ol1 ~]# cd /var/lib/jenkins
  47. [root@ol1 jenkins]# ls
  48. config.xml                                          identity.key.enc                             logs              secret.key                userContent
  49. hudson.model.UpdateCenter.xml                       jenkins.install.InstallUtil.lastExecVersion  nodeMonitors.xml  secret.key.not-so-secret  users
  50. hudson.plugins.emailext.ExtendedEmailPublisher.xml  jenkins.install.UpgradeWizard.state          nodes             secrets                   workflow-libs
  51. hudson.plugins.git.GitTool.xml                      jobs                                         plugins           updates
  52. [root@ol1 jenkins]# ls -l
  53. total 56
  54. -rw-r--r--.  1 jenkins jenkins 1592 Dec 15 01:03 config.xml
  55. -rw-r--r--.  1 jenkins jenkins  159 Dec 15 01:03 hudson.model.UpdateCenter.xml
  56. -rw-r--r--.  1 jenkins jenkins 1119 Dec 15 01:37 hudson.plugins.emailext.ExtendedEmailPublisher.xml
  57. -rw-r--r--.  1 jenkins jenkins  370 Dec 15 01:15 hudson.plugins.git.GitTool.xml
  58. -rw-------.  1 jenkins jenkins 1712 Dec 15 01:03 identity.key.enc
  59. -rw-r--r--.  1 jenkins jenkins    4 Dec 15 01:17 jenkins.install.InstallUtil.lastExecVersion
  60. -rw-r--r--.  1 jenkins jenkins    4 Dec 15 01:17 jenkins.install.UpgradeWizard.state
  61. drwxr-xr-x.  2 jenkins jenkins    6 Dec 15 01:02 jobs
  62. drwxr-xr-x.  3 jenkins jenkins   18 Dec 15 01:03 logs
  63. -rw-r--r--.  1 jenkins jenkins  907 Dec 15 01:03 nodeMonitors.xml
  64. drwxr-xr-x.  2 jenkins jenkins    6 Dec 15 01:03 nodes
  65. drwxr-xr-x. 66 jenkins jenkins 8192 Dec 15 01:46 plugins
  66. -rw-r--r--.  1 jenkins jenkins   64 Dec 15 01:02 secret.key
  67. -rw-r--r--.  1 jenkins jenkins    0 Dec 15 01:02 secret.key.not-so-secret
  68. drwx------.  4 jenkins jenkins 4096 Dec 15 01:17 secrets
  69. drwxr-xr-x.  2 jenkins jenkins 4096 Dec 15 01:14 updates
  70. drwxr-xr-x.  2 jenkins jenkins   23 Dec 15 01:03 userContent
  71. drwxr-xr-x.  3 jenkins jenkins   18 Dec 15 01:17 users
  72. drwxr-xr-x.  2 jenkins jenkins    6 Dec 15 01:15 workflow-libs
  73. [root@ol1 jenkins]# which git
  74. /usr/bin/git
  75. [root@ol1 jenkins]# yum install git
  76. Loaded plugins: ulninfo
  77. Package git-1.8.3.1-6.el7_2.1.x86_64 already installed and latest version
  78. Nothing to do
  79. [root@ol1 jenkins]# yum install maven
  80. Loaded plugins: ulninfo
  81. No package maven available.
  82. Error: Nothing to do
  83. [root@ol1 jenkins]# yum install maven2
  84. Loaded plugins: ulninfo
  85. No package maven2 available.
  86. Error: Nothing to do
  87. [root@ol1 jenkins]# mvn
  88. -bash: mvn: command not found
  89. [root@ol1 jenkins]# which maven2
  90. /usr/bin/which: no maven2 in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
  91. [root@ol1 jenkins]# which git
  92. /usr/bin/git
  93. [root@ol1 jenkins]# which jenkins
  94. /usr/bin/which: no jenkins in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
  95. [root@ol1 jenkins]# mvn
  96. -bash: mvn: command not found
  97. [root@ol1 jenkins]#  mvn
  98. -bash: mvn: command not found
  99. [root@ol1 jenkins]#  mvn
  100. -bash: mvn: command not found
  101. [root@ol1 jenkins]# run mvn
  102. -bash: run: command not found
  103. [root@ol1 jenkins]# ls -l
  104. total 56
  105. -rw-r--r--.  1 jenkins jenkins 1592 Dec 15 01:03 config.xml
  106. -rw-r--r--.  1 jenkins jenkins  159 Dec 15 01:03 hudson.model.UpdateCenter.xml
  107. -rw-r--r--.  1 jenkins jenkins 1119 Dec 15 01:37 hudson.plugins.emailext.ExtendedEmailPublisher.xml
  108. -rw-r--r--.  1 jenkins jenkins  370 Dec 15 01:15 hudson.plugins.git.GitTool.xml
  109. -rw-------.  1 jenkins jenkins 1712 Dec 15 01:03 identity.key.enc
  110. -rw-r--r--.  1 jenkins jenkins    4 Dec 15 01:17 jenkins.install.InstallUtil.lastExecVersion
  111. -rw-r--r--.  1 jenkins jenkins    4 Dec 15 01:17 jenkins.install.UpgradeWizard.state
  112. drwxr-xr-x.  3 jenkins jenkins   35 Dec 15 01:59 jobs
  113. drwxr-xr-x.  3 jenkins jenkins   18 Dec 15 01:03 logs
  114. -rw-r--r--.  1 jenkins jenkins  907 Dec 15 01:03 nodeMonitors.xml
  115. drwxr-xr-x.  2 jenkins jenkins    6 Dec 15 01:03 nodes
  116. drwxr-xr-x. 66 jenkins jenkins 8192 Dec 15 01:46 plugins
  117. -rw-r--r--.  1 jenkins jenkins   64 Dec 15 01:02 secret.key
  118. -rw-r--r--.  1 jenkins jenkins    0 Dec 15 01:02 secret.key.not-so-secret
  119. drwx------.  4 jenkins jenkins 4096 Dec 15 02:14 secrets
  120. drwxr-xr-x.  2 jenkins jenkins 4096 Dec 15 01:14 updates
  121. drwxr-xr-x.  2 jenkins jenkins   23 Dec 15 01:03 userContent
  122. drwxr-xr-x.  3 jenkins jenkins   18 Dec 15 01:17 users
  123. drwxr-xr-x.  2 jenkins jenkins    6 Dec 15 01:15 workflow-libs
  124. drwxr-xr-x.  3 jenkins jenkins   35 Dec 15 02:13 workspace
  125. [root@ol1 jenkins]# cd jobs/
  126. [root@ol1 jobs]# ls
  127. game-of-life-packaging
  128. [root@ol1 jobs]# cd game-of-life-packaging/
  129. [root@ol1 game-of-life-packaging]# ls
  130. builds  config.xml  lastStable  lastSuccessful  nextBuildNumber  scm-polling.log
  131. [root@ol1 game-of-life-packaging]# cd workspace
  132. -bash: cd: workspace: No such file or directory
  133. [root@ol1 game-of-life-packaging]# exit
  134. logout
  135. Connection to 192.168.1.18 closed.
  136. ShamanteddysMBP:~ shamanthreddyd$ ssh root@192.168.1.18
  137. root@192.168.1.18's password:
  138. Last login: Thu Dec 15 00:44:19 2016 from shamanteddysmbp.home
  139. [root@ol1 ~]# cd /var/lib/jenkins/
  140. [root@ol1 jenkins]# systemctl start jenkins
  141. [root@ol1 jenkins]# systemctl status jenkins
  142. ● jenkins.service - LSB: Jenkins Continuous Integration Server
  143.   Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
  144.   Active: active (running) since Thu 2016-12-15 01:02:53 EST; 1h 18min ago
  145.     Docs: man:systemd-sysv-generator(8)
  146.   CGroup: /system.slice/jenkins.service
  147.           └─24312 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.wa...
  148.  
  149. Dec 15 01:02:52 ol1.localdomain systemd[1]: Starting LSB: Jenkins Continuous Integration Server...
  150. Dec 15 01:02:52 ol1.localdomain runuser[24298]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
  151. Dec 15 01:02:53 ol1.localdomain jenkins[24297]: Starting Jenkins [  OK  ]
  152. Dec 15 01:02:53 ol1.localdomain systemd[1]: Started LSB: Jenkins Continuous Integration Server.
  153. [root@ol1 jenkins]# vi config.xml
  154. [root@ol1 jenkins]# cd ~
  155. [root@ol1 ~]# git clone https://github.com/dshamanthreddy/game-of-life
  156. Cloning into 'game-of-life'...
  157. remote: Counting objects: 9166, done.
  158. remote: Total 9166 (delta 0), reused 0 (delta 0), pack-reused 9165
  159. Receiving objects: 100% (9166/9166), 17.55 MiB | 3.27 MiB/s, done.
  160. Resolving deltas: 100% (5598/5598), done.
  161. [root@ol1 ~]# yum install Maven
  162. Loaded plugins: ulninfo
  163. No package Maven available.
  164. Error: Nothing to do
  165. [root@ol1 ~]# yum install Maven 3
  166. Loaded plugins: ulninfo
  167. No package Maven available.
  168. No package 3 available.
  169. Error: Nothing to do
  170. [root@ol1 ~]# mvn
  171. -bash: mvn: command not found
  172. [root@ol1 ~]# mvn
  173. -bash: mvn: command not found
  174. [root@ol1 ~]# exit
  175. logout
  176. Connection to 192.168.1.18 closed.
  177. ShamanteddysMBP:~ shamanthreddyd$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement