portfolio/Jenkinsfile
2025-01-11 19:13:30 +00:00

23 lines
No EOL
648 B
Groovy

@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
runSmokeTest = false
releaseArgs = { params -> "-f docker/Dockerfile ." }
})