Update Jenkinsfile
This commit is contained in:
parent
0372c4cd77
commit
f90ec3faaf
1 changed files with 21 additions and 7 deletions
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -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 ." }
|
||||||
|
})
|
Loading…
Add table
Reference in a new issue