Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/dlog / Jenkinsfile
Size: Mime:
  @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)
    }
  }
}