Some checks failed
forgejo/romanjaros/portfolio/pipeline/head There was a failure building this commit
22 lines
No EOL
624 B
Groovy
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 ." }
|
|
}) |