Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<author>CloudBees</author>
<authorUrl>http://www.electric-cloud.com/support</authorUrl>
<category>Utility</category>
<commander-version min="6.0" />
<commander-version min="10.2" />
<depends min="1.4.0">EC-PluginManager</depends>
<description>Deploy your complete ElectricFlow DSL file structure to the server</description>
<help>help.xml</help>
<key>EC-DslDeploy</key>
<label>EC-DslDeploy</label>
<ecSupportLevel>10</ecSupportLevel>
<version>3.0.3</version>
<version>3.1.0</version>
<hasAdoc>true</hasAdoc>

<detailedDescription>CloudBees CD allows you to take a fully code-native approach to continuous delivery and release orchestration using the CloudBees CD Groovy-based DSL. The CloudBees CD model based approach means that every object in CloudBees CD, including release pipelines, deployment automation &amp; strategies, environments, configurations, application models, and more, are all backed by code.
Expand Down
49 changes: 32 additions & 17 deletions dsl/procedures/importDslFromGit/procedure.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,37 @@ def procName = 'importDslFromGit'
procedure procName, {
jobNameTemplate = 'import-dsl-from-git-$[jobId]'

step 'checkoutDsl',
subprocedure: 'CheckoutCode',
subproject:'/plugins/ECSCM-Git/project',
resourceName: '$[rsrcName]',
errorHandling: 'abortProcedure',
actualParameter: [
clone: '$[clone]',
commit: '$[commit]',
config: '$[config]',
depth: '$[depth]',
dest: '$[dest]',
GitBranch: '$[GitBranch]',
GitRepo: '$[GitRepo]',
overwrite: '$[GitOverwrite]',
tag: '$[tag]'
]
step 'checkoutDslClone', {
subprocedure = 'Clone'
subproject = '/plugins/EC-Git/project'
resourceName = '$[rsrcName]'
errorHandling = 'abortProcedure'
actualParameter = [
commit: '$[commit]',
config: '$[config]',
depth: '$[depth]',
repoUrl: '$[GitRepo]',
branch: '$[GitBranch]',
gitRepoFolder: '$[dest]',
overwrite: '$[GitOverwrite]',
tag: '$[tag]'
]
condition = '$[/javascript myJob.clone == "1" || myJob.clone == "true"]'
}

step 'checkoutDslPull', {
subprocedure = 'Pull'
subproject = '/plugins/EC-Git/project'
resourceName = '$[rsrcName]'
errorHandling = 'abortProcedure'
actualParameter = [
config: '$[config]',
branch: '$[GitBranch]',
repoUrl: '$[GitRepo]',
gitRepoFolder: '$[dest]',
]
condition = '$[/javascript myJob.clone == "0" || myJob.clone == "false"]'
}

step 'installFromDirectory',
subprocedure: 'installDslFromDirectory',
Expand All @@ -42,4 +57,4 @@ procedure procName, {
resourceName = '$[rsrcName]'
shell = 'ec-groovy'
}
}
}
4 changes: 4 additions & 0 deletions help/help.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ image:cloudbees-common::cd-plugins/ec-dsldeploy/help/importdslfromgit.png[import
[[releaseNotes]]
== Release notes

=== EC-DslDeploy 3.1.0

* The plugin has been switched to use the new plugin EC-Git in place of the old ECSCM-Git.

=== EC-DslDeploy 3.0.2

* The documentation has been migrated to the main documentation site.
Expand Down