Skip to content

Commit f3b805e

Browse files
authored
BEE-49248: Process reservations under project (#113)
1 parent 9cfca49 commit f3b805e

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-05.14 Antoine Meyer <[email protected]>
2+
* 4.3.2: BEE-49248 - Process reservations under project. (Note that previously exported DSLs will need to be re-exported for import to succeed)
3+
14
2024-03.01 Valera Fessler <[email protected]>
25
* 4.3.1: BEE-43082 - Add child process entities support for the microservice container entity
36

META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<key>EC-DslDeploy</key>
1111
<label>EC-DslDeploy</label>
1212
<ecSupportLevel>10</ecSupportLevel>
13-
<version>4.3.1</version>
13+
<version>4.3.2</version>
1414
<hasAdoc>true</hasAdoc>
1515

1616
<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.

build.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
my $epb="../ecpluginbuilder";
1717

18-
my $pluginVersion = "4.3.1";
18+
my $pluginVersion = "4.3.2";
1919
my $pluginKey = "EC-DslDeploy";
2020

2121
# Fix version in plugin.xml

dsl/com/electriccloud/commander/dsl/util/BaseObject.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ abstract class BaseObject extends DslDelegatingScript {
359359
catalogItem : ['trigger'],
360360
component : ['process'],
361361
dashboard : ['reportingFilter', 'widget'],
362-
environment : ['cluster', 'environmentTier', 'reservation'],
362+
environment : ['cluster', 'environmentTier'],
363363
gate : ['task'],
364364
microservice : ['process'],
365365
pipeline : ['stage', 'trigger'],

dsl/procedures/installProject/steps/deployProjectEntities.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
my @subProjectEntities = ("project", "credentialProvider", "credential",
88
"pluginConfiguration","procedure", "resourceTemplate", "workflowDefinition",
99
"environmentTemplate", "environment", "component",
10-
"application", "pipeline", "release", "schedule", "catalog", "report", "dashboard");
10+
"application", "pipeline", "release", "reservation", "schedule", "catalog", "report", "dashboard");
1111

1212
my ($userTimeout) = ("$[additionalDslArguments]" =~ m/--timeout\s+([0-9]+)/);
1313
print("User timeout is: '$userTimeout'\n");

help/help.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,12 @@ NOTE: If the Git commit ID cannot be found or if the procedure or steps cannot f
368368
[[releaseNotes]]
369369
== DslDeploy plugin release notes
370370

371+
=== 4.3.2
372+
373+
* Process reservations under project.
374+
+
375+
NOTE: Previously exported DSLs must be re-exported for import to succeed.
376+
371377
=== 4.3.1
372378

373379
* Added child process entities support for the microservice container entity.

specs/src/test/groovy/com/electriccloud/plugin/spec/EnvironmentSpec.groovy

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@ class EnvironmentSpec
2323
conditionallyDeleteProject(projName)
2424
}
2525

26-
def "BEE-35400: deploy environment with reservation"()
26+
def "BEE-35400: deploy project with reservation"()
2727
{
2828
def dslDir = '/tmp/' + randomize('dsl')
2929

3030
given: "environment dsl code"
3131
dsl """
3232
project '$projName', {
3333
environment 'testEnvironment',{
34-
reservation 'testReservation', {
35-
beginDate = '2019-09-09T10:00'
36-
blackout = '1'
37-
endDate = '2019-09-09T11:00'
38-
timeZone = 'Europe/Kiev'
39-
}
34+
}
35+
reservation 'testReservation', {
36+
environmentName = 'testEnvironment'
37+
beginDate = '2019-09-09T10:00'
38+
blackout = '1'
39+
endDate = '2019-09-09T11:00'
40+
timeZone = 'Europe/Kiev'
4041
}
4142
}
4243
"""

0 commit comments

Comments
 (0)