2022-10-24 08:02:17 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'node:19-bullseye-slim'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
CI = 'true'
|
|
|
|
NODE_ENV = 'production'
|
2022-10-24 08:11:09 +02:00
|
|
|
HOME = '.'
|
|
|
|
npm_config_cache = 'npm_cache'
|
2022-10-24 08:02:17 +02:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2022-10-24 08:08:42 +02:00
|
|
|
sh 'uname -a'
|
|
|
|
sh 'npm install --loglevel=verbose'
|
2022-10-24 08:14:04 +02:00
|
|
|
sh 'npm install react-scripts@3.4.1'
|
2022-10-24 08:02:17 +02:00
|
|
|
sh 'npm clean-install --only=production'
|
2022-10-24 08:14:04 +02:00
|
|
|
sh 'pwd'
|
|
|
|
sh 'ls -alrth'
|
2022-10-24 08:02:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|