Remove stages from steps
Stages for steps should be defined in pipelines
Change-Id: I0b5e9162deaf3d147329a882d3716f80668d6c86
diff --git a/vars/gitSSHCheckout.groovy b/vars/gitSSHCheckout.groovy
index 6f52d9b..0bb696f 100644
--- a/vars/gitSSHCheckout.groovy
+++ b/vars/gitSSHCheckout.groovy
@@ -8,21 +8,19 @@
def targetDir = config.targetDir ?: "./"
def port = config.port ?: "29418"
- stage("Git Checkout"){
- checkout(
- scm: [
- $class: 'GitSCM',
- branches: [[name: "${config.branch}"]],
- extensions: [
- [$class: 'CleanCheckout'],
- [$class: 'RelativeTargetDirectory', relativeTargetDir: "${targetDir}"]
- ],
- userRemoteConfigs: [[
- credentialsId: "${config.credentialsId}",
- name: 'origin',
- url: "ssh://${config.credentialsId}@${config.host}:${port}/${config.project}.git"
- ]]
- ]
- )
- }
+ checkout(
+ scm: [
+ $class: 'GitSCM',
+ branches: [[name: "${config.branch}"]],
+ extensions: [
+ [$class: 'CleanCheckout'],
+ [$class: 'RelativeTargetDirectory', relativeTargetDir: "${targetDir}"]
+ ],
+ userRemoteConfigs: [[
+ credentialsId: "${config.credentialsId}",
+ name: 'origin',
+ url: "ssh://${config.credentialsId}@${config.host}:${port}/${config.project}.git"
+ ]]
+ ]
+ )
}