portfolio/Jenkinsfile

22 lines
623 B
Text
Raw Normal View History

@Library('jenkins-lib')
2025-01-11 19:13:30 +00:00
import DefaultPipeline
2025-01-11 19:13:30 +00:00
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 ." }
})