-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
33 lines (33 loc) · 927 Bytes
/
Jenkinsfile
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
pipeline {
agent any
options {
ansiColor('xterm')
}
stages {
stage('Build') {
steps {
echo 'Building...'
sh 'npm install --ansi'
writeFile file: 'src/environments/environment.prod.ts', text: "export const environment = { production: true, apiUrl: 'https://abh.ai' };"
sh 'npm run build -- --prod'
}
}
stage('Coding Standards') {
steps {
echo 'Checking coding standards...'
}
}
stage('Test') {
steps {
echo 'Testing...'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'ssh ubuntu@192.168.0.25 rm -rf /home/ubuntu/Sites/ng'
sh 'scp -r dist/ng ubuntu@192.168.0.25:/home/ubuntu/Sites/'
}
}
}
}