Update Jenkinsfile

This commit is contained in:
Roman Jaroš 2025-01-11 19:13:30 +00:00
parent 0372c4cd77
commit f90ec3faaf

26
Jenkinsfile vendored
View file

@ -1,9 +1,23 @@
@Library('jenkins-lib') @Library('jenkins-lib')
import FrontendBuild import DefaultPipeline
FrontendBuild({ DefaultPipeline({
name = 'portfolio' appName = 'portfolio'
port = "93:3000" gitOwner = "romanjaros"
runSonar = true harborProject = "romanjaros"
appType = "nextjs" 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 ." }
}) })