portfolio/Jenkinsfile
Roman Jaroš 17f94d44f7
Some checks failed
forgejo/romanjaros/portfolio/pipeline/head There was a failure building this commit
Update Jenkinsfile for newest image
2025-01-11 19:35:22 +00:00

22 lines
No EOL
624 B
Groovy

@Library('jenkins-lib')
import DefaultPipeline
DefaultPipeline({
appName = 'portfolio'
gitOwner = "romanjaros"
harborProject = "romanjaros"
image = "jenkins/nodejs:20.x-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 ." }
})