Switch to pnpm.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
67b567f710
commit
775caaf1ac
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -4,11 +4,11 @@ def deploy() {
|
|||||||
stage('Deploy (Ubuntu)') {
|
stage('Deploy (Ubuntu)') {
|
||||||
checkout scm
|
checkout scm
|
||||||
nodejs(nodeJSInstallationName: 'Node23') {
|
nodejs(nodeJSInstallationName: 'Node23') {
|
||||||
sh 'yarn install --frozen-lockfile --production=false'
|
sh 'pnpm install --frozen-lockfile --production=false'
|
||||||
sh 'NODE_ENV=production yarn build'
|
sh 'NODE_ENV=production pnpm build'
|
||||||
// Deploy to Cloudflare Pages using wrangler
|
// Deploy to Cloudflare Pages using wrangler
|
||||||
withCredentials([string(credentialsId: 'cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
|
withCredentials([string(credentialsId: 'cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
|
||||||
sh 'yarn wrangler pages deploy build'
|
sh 'pnpm wrangler pages deploy build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -29,10 +29,10 @@ def buildOnLabel(label, buildCommand) {
|
|||||||
nodejs(nodeJSInstallationName: 'Node23') {
|
nodejs(nodeJSInstallationName: 'Node23') {
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
sh 'node -v'
|
sh 'node -v'
|
||||||
sh 'yarn -v'
|
sh 'pnpm -v'
|
||||||
} else {
|
} else {
|
||||||
bat 'node -v'
|
bat 'node -v'
|
||||||
bat 'yarn -v'
|
bat 'pnpm -v'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,9 +40,9 @@ def buildOnLabel(label, buildCommand) {
|
|||||||
stage("Install Dependencies (${label})") {
|
stage("Install Dependencies (${label})") {
|
||||||
nodejs(nodeJSInstallationName: 'Node23') {
|
nodejs(nodeJSInstallationName: 'Node23') {
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
sh 'yarn install --frozen-lockfile --production=false'
|
sh 'pnpm install --frozen-lockfile --production=false'
|
||||||
} else {
|
} else {
|
||||||
bat 'yarn install --frozen-lockfile --production=false'
|
bat 'pnpm install --frozen-lockfile --production=false'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -66,8 +66,8 @@ def buildOnLabel(label, buildCommand) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
parallel(
|
parallel(
|
||||||
'Windows Build': buildOnLabel('windows', 'yarn build:electron'),
|
'Windows Build': buildOnLabel('windows', 'pnpm build:electron'),
|
||||||
'MacOS Build': buildOnLabel('macos', 'yarn build:electron'),
|
'MacOS Build': buildOnLabel('macos', 'pnpm build:electron'),
|
||||||
'Ubuntu Deploy': { deploy() }
|
'Ubuntu Deploy': { deploy() }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user