Repository URL to install this package:
|
Version:
0.0.1-c39849eb0bb7c8 ▾
|
@doodle/dlog
/
Jenkinsfile
|
|---|
@Library("lib-jenkins-deployment@v3.0.1") _
import com.doodle.tagflow.deployment.TagFlowDeployment
import com.doodle.tagflow.project.ProjectType
final TagFlowDeployment deployment
slackUtils.setChannelsToNotify(["#web-notifications"])
node ('master') {
dir("${env.WORKSPACE}@libs") {
deleteDir()
}
dir("${env.WORKSPACE}@script") {
deleteDir()
}
}
node("jenkins") {
ansiColor("xterm") {
stage("prepare") {
final String commitHash = checkout(scm).GIT_COMMIT
final String shortCommitHash = gitUtils.getShortCommitHash(commitHash)
deployment = tagFlow.executePrepareStep(shortCommitHash, ProjectType.NPM)
}
stage("test") {
tagFlow.executeTestStep(deployment)
}
stage("publish") {
tagFlow.executeDeploymentStep(deployment)
}
}
}