-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkins one useful.txt
168 lines (94 loc) · 2.27 KB
/
Jenkins one useful.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
http://jenkins-ci.org/
sownload the latest war file
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service
java -jar jenkins.war
INFO: Jenkins is fully up and running
localhost:8080
====
manage jenkins
installwindowsserive--- when u start windows .. jenkins.exe.. automatically starts (if u want do it)
===
new item
simple one first....
name the prjt
freestyle project
source code inter...choosen none for simple
we can use svn .. git etc...
====
under build
sample one
windows cmd project
save
====
open the project
goto the latest build
console output
check the cmd output
========
configure
running at specific intervals
minute hour dom month
0-59/2 * * * *
evry 2 min
H/5 * * * *
evry 5 min
=====
after build setting
u can mail the status
managae gen
configure system
SMTP server
advanced
give the required details
==========
u can run the ant build.xml from jenkins
what happens when u have build in diff servers
GIT and GITHUB
GIT --tool which helps in checking and sync the code ..it connects to some server
file transfer b/w serve anf local machine git
git bash.....open it
now install the git plug in jenkins
manage jenkins--manage plugins...available
git plugin... install that
restart the jenkins server
enable auto refresh
---
manage jenkins--concigire system
give the git.exe ..path to git
C:\Program Files (x86)\Git\cmd\git.exe
SSH keys ... part for sercurity
open git bash
==
pwd
mkdir .ssh
cd .ssh
ssh-keygen -t rsa -C "naveenv20@gmail.com"
(check in ssh folder id_rsa and id_rsa.pub
gister the github as the reuiqres server
ssh -v git@github.com
(ssh flder known_hosts)
====
GITHUB is server( repositry)
naveenv20@gmail.com
greffendor8*
handshake
go the github account
go settings
ssh keys
add a key ( provide the id_rsa.pub key infor there)
go to git diectory in ur machine
paste the .ssh folder over there
on cmd
==
navigate to git bin
C:\Program Files (x86)\Git\bin
ssh.exe -T git@github.com
on git hub account .. create a repositry
and git bas ..go to the project path and
execute the given commands...
git init
git init
git add . (. for all files)
git commit -m "first commit"
git remote add origin https://github.com/naveenv20/SecondRepo.git
git push -u origin master