Update Jenkinsfile
This commit is contained in:
parent
0372c4cd77
commit
f90ec3faaf
1 changed files with 21 additions and 7 deletions
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
|
@ -1,9 +1,23 @@
|
|||
@Library('jenkins-lib')
|
||||
import FrontendBuild
|
||||
import DefaultPipeline
|
||||
|
||||
FrontendBuild({
|
||||
name = 'portfolio'
|
||||
port = "93:3000"
|
||||
runSonar = true
|
||||
appType = "nextjs"
|
||||
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 ." }
|
||||
})
|
Loading…
Add table
Reference in a new issue