#!/usr/bin/groovy
@Library('github.com/fabric8io/fabric8-pipeline-library@master')
def dummy
clientsTemplate{
  mavenNode(mavenOpts: "-Xmx1024m") {
    ws{
      checkout scm
      sh "git remote set-url origin git@github.com:fabric8io/fabric8.git"

      def pipeline = load 'release.groovy'

      stage 'Stage'
      def stagedProject = pipeline.stage()

      stage 'Promote'
      pipeline.release(stagedProject)
      
      stage 'Update downstream dependencies'
      pipeline.updateDownstreamDependencies(stagedProject)
    }
  }
}
