-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.yml
37 lines (37 loc) · 871 Bytes
/
Jenkinsfile.yml
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
pipeline:
agent any
environment:
NODE_ENV: 'production'
stages:
- stage: Install Dependencies
steps:
- script: |
echo "Installing dependencies..."
npm ci
- stage: Lint
steps:
- script: |
echo "Linting the code..."
npm run lint
- stage: Test
steps:
- script: |
echo "Running unit tests..."
npm test
- stage: Build
steps:
- script: |
echo "Building the application..."
npm run build
- stage: Deploy
steps:
- script: |
echo "Deploying the application..."
npm run deploy
post:
always:
- script: echo "Pipeline finished."
success:
- script: echo "Pipeline completed successfully."
failure:
- script: echo "Pipeline failed."