Switch to pnpm.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
This commit is contained in:
parent
7fb968d4ed
commit
81b7dd6e16
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ pipeline {
|
|||||||
sh '''
|
sh '''
|
||||||
export NODE_ENV=test
|
export NODE_ENV=test
|
||||||
export SESSION_SECRET=test-session-secret-for-testing-only
|
export SESSION_SECRET=test-session-secret-for-testing-only
|
||||||
yarn test
|
pnpm test
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ pipeline {
|
|||||||
excludes: 'node_modules/**',
|
excludes: 'node_modules/**',
|
||||||
execCommand: '''
|
execCommand: '''
|
||||||
cd /home/farmcontrol/farmcontrol-api
|
cd /home/farmcontrol/farmcontrol-api
|
||||||
yarn install --production
|
pnpm install --production
|
||||||
sudo systemctl restart farmcontrol-api
|
sudo systemctl restart farmcontrol-api
|
||||||
''',
|
''',
|
||||||
execTimeout: 120000,
|
execTimeout: 120000,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user