Switch to pnpm.
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit

This commit is contained in:
Tom Butcher 2026-02-01 21:42:22 +00:00
parent ad8441f72f
commit 09376f7536

8
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ pipeline {
steps { steps {
nodejs(nodeJSInstallationName: 'Node23') { nodejs(nodeJSInstallationName: 'Node23') {
sh 'node -v' sh 'node -v'
sh 'yarn -v' sh 'pnpm -v'
} }
} }
} }
@ -26,7 +26,7 @@ pipeline {
stage('Install Dependencies') { stage('Install Dependencies') {
steps { steps {
nodejs(nodeJSInstallationName: 'Node23') { nodejs(nodeJSInstallationName: 'Node23') {
sh 'yarn install --frozen-lockfile --production=false' sh 'pnpm install --frozen-lockfile --production=false'
} }
} }
} }
@ -36,7 +36,7 @@ pipeline {
nodejs(nodeJSInstallationName: 'Node23') { nodejs(nodeJSInstallationName: 'Node23') {
sh ''' sh '''
export NODE_ENV=test export NODE_ENV=test
yarn test pnpm test
''' '''
} }
} }
@ -58,7 +58,7 @@ pipeline {
excludes: 'node_modules/**', excludes: 'node_modules/**',
execCommand: ''' execCommand: '''
cd /home/farmcontrol/farmcontrol-ws cd /home/farmcontrol/farmcontrol-ws
yarn install --production pnpm install --production
sudo systemctl restart farmcontrol-ws sudo systemctl restart farmcontrol-ws
''', ''',
execTimeout: 120000, execTimeout: 120000,