-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins cli
51 lines (51 loc) · 1.87 KB
/
jenkins cli
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
1 exit
2 scp -r ./* [email protected]:~/website/
3 exit $?
4 scp -r ./* [email protected]:~/website/
5 exit $?
6 cd /var/lib/jenkins/workspace/pipeline
7 scp -r ./* [email protected]:~/website/
8 exit $?
9 cd /var/lib/jenkins/workspace/pipeline
10 scp -r ./* [email protected]:~/website/
11 exit $?
12 cd /var/lib/jenkins/workspace/pipeline
13 scp -r ./* [email protected]:~/website/
14 exit $?
15 cd ~/website/
16 docker build -t port .
17 Docker run -d -p 80:80 --name PORT port
18 exit $?
19 cd /var/lib/jenkins/workspace/pipeline
20 scp -r ./* [email protected]:~/website/
21 exit $?
22 cd /var/lib/jenkins/workspace/pipeline
23 scp -r ./* [email protected]:~/website/
24 exit $?
25 cd /var/lib/jenkins/workspace/pipeline
26 scp -r ./* [email protected]:~/website/
27 exit $?
28 cd /var/lib/jenkins/workspace/pipeline
29 scp -r ./* [email protected]:~/website/
30 exit $?
31 cd /var/lib/jenkins/workspace/pipeline
32 scp -r ./* [email protected]:~/website/
33 exit $?
34 cd /var/lib/jenkins/workspace/pipeline
35 scp -r ./* [email protected]:~/website/
36 exit $?
37 sudo hostnamectl
38 sudo hostnamectl set-hostname jenkins
39 /bin/bash
40 sudo apt update
41 sudo apt install openjdk-11-jre
42 curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
43 echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
44 sudo apt-get update
45 sudo apt-get install jenkins
46 systemctl status jenkins
47 cd /var/lib/jenkins/workspace/
48 ls
49 cd pipeline
50 ls
51 pwd