-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathJenkinsfile
More file actions
60 lines (51 loc) · 1.26 KB
/
Jenkinsfile
File metadata and controls
60 lines (51 loc) · 1.26 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
57
58
59
60
pipeline {
agent {
node {
label 'linux'
}
}
tools {
jfrog 'jfrog-cli'
nodejs 'npm'
}
stages {
stage('Clone') {
steps {
git branch: 'main', url: "https://github.com/MaharshiPatel/react-node-app.git"
}
}
stage('Check Connection') {
steps {
jf 'rt ping'
sh """
# Example of uploading files to Artifactory
pwd
ls -la
"""
}
}
stage('Build and Publish Artifact') {
steps {
// Configure npm project's repositories
jf 'npm-config --repo-resolve acic-npm --repo-deploy acic-npm'
// Install dependencies
jf 'npm install'
sh """
ls -la
"""
// Pack and deploy the npm package
jf 'npm publish'
}
}
stage('Publish build info') {
steps {
jf 'rt bp'
}
}
stage('Build Scan') {
steps {
jf 'bs'
}
}
}
}