@Library('jenkins-lib') import DefaultPipeline DefaultPipeline({ appName = 'portfolio' gitOwner = "romanjaros" harborProject = "romanjaros" image = "jenkins/nodejs:lts-alpine3.18" appVersion = { params -> def packageJson = readJSON file: "package.json" return packageJson.version } increaseVersion = { params -> if (params.RELEASE != "latest") { sh "pnpm release ${params.RELEASE} ${params.PREID ? '--preid=' + params.PREID : ''}" sh "git add package.json" } } runSmokeTest = false runUnitTest = false releaseArgs = { params -> "-f docker/Dockerfile ." } })