Added Jenkinsfile.
This commit is contained in:
parent
d6721f7af3
commit
b7fa990124
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'node:19-bullseye-slim'
|
||||
args '-p 3000:3000'
|
||||
}
|
||||
}
|
||||
environment {
|
||||
CI = 'true'
|
||||
NODE_ENV = 'production'
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'npm install'
|
||||
sh 'npm install react-scripts@3.4.1 -g'
|
||||
sh 'npm clean-install --only=production'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user