-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaily-notes
More file actions
59 lines (38 loc) · 1.24 KB
/
daily-notes
File metadata and controls
59 lines (38 loc) · 1.24 KB
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
Command Substiution:
Define the data of a variable using command output
Syntax : var=$(commands)
Ex: DATE=$(date +%F)
echo %$DATE
Arithimatic Substution:
Define data of a variable using arithematic operators
+ -> addition
- -> Subtraction
* -> Multi
/ -> Div
% -> Reminder
Syntax: var=$(( expression ))
Ex: ADD=$((10+20))
wet http://10.128.0.7/svn/adin/new --user=$username --password=$password -O /tmp/out1
---------------------
Backup in Jenkins
1) Login to Jenkins -> Manage Jenkins -> Plugins > (search) backup
2) Select backup plugin and then install and restart
3) Manage jenkins -> backup Manager -> Setup
Backup Directory : /backup
select all data to backup
4) Loguin to server using ssh
mkdir /backup
chown jenkins /backup
5) Manage Jenkins -> Backup Manager -> Backup Hudson Configuration
Restoring in Jenkins
1) Shutdown Jenkins
2) Move jenkins home directory
mv /var/lib/jenkins /var/lib/old_jenkins
3) Extract the backup.
cd /var/lib
mkdir jenkins
cd jenkins
tar xzf /backup/backup.tar.gz
chown jenkins:jenkins /var/lib/jenkins -R
4) Start Jenkins
wget -O file.war "http://172.31.6.196:8081/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.javaee7.sample&a=javaee7-simple-sample&v=LATEST&p=war"