SiteFrontend/Jenkinsfile
Teriuihi a8ea5c38f1 Update npm install command in Jenkinsfile
Forced installation of npm packages and resolved legacy peer dependency issues by adding `--force` and `--legacy-peer-dep` flags to `npm install` command. This ensures compatibility with certain package versions that may have unresolved peer dependencies.
2024-08-04 23:10:42 +02:00

21 lines
621 B
Groovy

pipeline {
agent any
stages {
stage('Gradle') {
steps {
sh 'npm install --force --legacy-peer-dep'
sh 'npm run build'
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: 'build/**', followSymlinks: false
}
}
stage('discord') {
steps {
discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook
}
}
}
}