@eui/tools 4.21.15 → 4.21.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 4.21.15
1
+ 4.21.18
package/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## 4.21.18 (2022-04-22)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * support to support develop merge check versions - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([dbec66eb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/dbec66ebdaecbbe05f7c1c3418a010658c3c28b2))
7
+
8
+ * * *
9
+ * * *
10
+ ## 4.21.17 (2022-04-20)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * adapted devops-metadata not using shallow clone on release - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([aa08b8b7](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/aa08b8b7eb890740575ed3ab72f4a5c8aa626095))
16
+
17
+ * * *
18
+ * * *
19
+ ## 4.21.16 (2022-04-20)
20
+
21
+ ##### Chores
22
+
23
+ * **other:**
24
+ * EUI-5854 Update Camunda Maven Template [EUI-5854](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5854) ([3c1233db](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3c1233db5b5d62defbfef2804398216c894762dc))
25
+ ##### Bug Fixes
26
+
27
+ * **typo:**
28
+ * EUI-5854 property missing parents [EUI-5854](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5854) ([e9241580](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e9241580849bfe194ce3dadf16d9da1b7bdbb443))
29
+
30
+ * * *
31
+ * * *
1
32
  ## 4.21.15 (2022-04-20)
2
33
 
3
34
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.21.15",
3
+ "version": "4.21.18",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -696,7 +696,15 @@ const translationUtils = require('./scripts/utils/pre-build/translations/transla
696
696
 
697
697
  Promise.resolve()
698
698
  .then(() => {
699
- return initUtils.processResolutionsForNodeVersion();
699
+ // return initUtils.processResolutionsForNodeVersion();
700
+ const b1 = 'support/7.x';
701
+ const b2 = 'support/develop-10.x';
702
+
703
+ const v1 = b1.split('/')[1];
704
+ const v2 = b2.split('-')[1];
705
+
706
+ console.log(v1, v2);
707
+
700
708
  })
701
709
 
702
710
  // return Promise.resolve()
@@ -26,7 +26,7 @@ module.exports.install = (pkg) => {
26
26
 
27
27
  // cloning devops metadata repo
28
28
  .then(() => {
29
- return metadataUtils.common.cloneMetadataRepo();
29
+ return metadataUtils.common.cloneMetadataRepo(true);
30
30
  })
31
31
 
32
32
 
@@ -16,7 +16,7 @@ const innerAppHistory = require('./app-history');
16
16
  const innerAppEnvs = require('./app-envs');
17
17
 
18
18
 
19
- module.exports.cloneMetadataRepo = () => {
19
+ module.exports.cloneMetadataRepo = (noHistory = false) => {
20
20
  const configOptions = configUtils.global.getConfigOptions();
21
21
 
22
22
  tools.logTitle('Cloning devops metadata repo');
@@ -28,7 +28,7 @@ module.exports.cloneMetadataRepo = () => {
28
28
  } else {
29
29
  return Promise.resolve()
30
30
  .then(() => {
31
- return gitUtils.cloneRepo(configOptions.DEVOPS_METADATA_REPOSITORY, configOptions.DEVOPS_METADATA_PATH, false, true);
31
+ return gitUtils.cloneRepo(configOptions.DEVOPS_METADATA_REPOSITORY, configOptions.DEVOPS_METADATA_PATH, false, noHistory);
32
32
  })
33
33
  .catch((e) => {
34
34
  throw e;
@@ -44,6 +44,11 @@
44
44
  <username>@user.name@</username>
45
45
  <password>@user.password@</password>
46
46
  </server>
47
+ <server>
48
+ <id>camunda-bpm-shared-services</id>
49
+ <username>@user.name@</username>
50
+ <password>@user.password@</password>
51
+ </server>
47
52
  </servers>
48
53
 
49
54
  <mirrors>
@@ -146,6 +151,14 @@
146
151
  <releases><enabled>true</enabled></releases>
147
152
  </repository>
148
153
 
154
+ <repository>
155
+ <id>camunda-bpm-shared-services</id>
156
+ <name>Camunda BPM Shared Services</name>
157
+ <url>https://webgate.ec.europa.eu/CITnet/nexus/repository/camunda-shared-services/</url>
158
+ <releases><enabled>true</enabled></releases>
159
+ <snapshots><enabled>false</enabled></snapshots>
160
+ </repository>
161
+
149
162
  </repositories>
150
163
  </profile>
151
164
  </profiles>
@@ -245,30 +245,37 @@ const mergeSupportToSupportDevelop = (pkg, folder, supportBranch, supportSnapsho
245
245
  if (dryRun) {
246
246
  tools.logInfo('DRY-RUN: skipping merge support to supportDevelop');
247
247
  return Promise.resolve();
248
+ }
248
249
 
249
- } else {
250
+ const supportBranchVersion = supportBranch.split('/')[1];
251
+ const supportSnapshotBranchVersion = supportSnapshotBranch.split('-')[1];
250
252
 
251
- if (pkg && pkg.build && pkg.build.masterBranchOnly) {
252
- tools.logInfo('Merge skipped project config set to master branch only');
253
- return Promise.resolve();
253
+ if (supportBranchVersion !== supportSnapshotBranchVersion) {
254
+ tools.logInfo('skipping... support version and support snapshot versions are different');
255
+ tools.logInfo(`[${supportBranchVersion}] vs [${supportSnapshotBranchVersion}]`);
256
+ return Promise.resolve();
257
+ }
254
258
 
255
- } else {
256
- return Promise.resolve()
257
- .then(() => {
258
- execa.shellSync(`git fetch origin`, { cwd: folder });
259
- execa.shellSync(`git checkout ${supportSnapshotBranch}`, { cwd: folder });
260
- execa.shellSync(`git merge origin/${supportSnapshotBranch}`, { cwd: folder });
261
- execa.shellSync(`git merge -X theirs ${supportBranch}`, { cwd: folder });
262
- execa.shellSync(`git push origin ${supportSnapshotBranch}`, { cwd: folder });
263
- execa.shellSync(`git checkout ${supportBranch}`, { cwd: folder });
264
- })
265
- .then(() => {
266
- tools.logSuccess();
267
- })
268
- .catch((e) => {
269
- throw new Error(`Error trying merging ${supportBranch} to ${supportSnapshotBranch} on ${folder}`);
270
- })
271
- }
259
+ if (pkg && pkg.build && pkg.build.masterBranchOnly) {
260
+ tools.logInfo('Merge skipped project config set to master branch only');
261
+ return Promise.resolve();
262
+
263
+ } else {
264
+ return Promise.resolve()
265
+ .then(() => {
266
+ execa.shellSync(`git fetch origin`, { cwd: folder });
267
+ execa.shellSync(`git checkout ${supportSnapshotBranch}`, { cwd: folder });
268
+ execa.shellSync(`git merge origin/${supportSnapshotBranch}`, { cwd: folder });
269
+ execa.shellSync(`git merge -X theirs ${supportBranch}`, { cwd: folder });
270
+ execa.shellSync(`git push origin ${supportSnapshotBranch}`, { cwd: folder });
271
+ execa.shellSync(`git checkout ${supportBranch}`, { cwd: folder });
272
+ })
273
+ .then(() => {
274
+ tools.logSuccess();
275
+ })
276
+ .catch((e) => {
277
+ throw new Error(`Error trying merging ${supportBranch} to ${supportSnapshotBranch} on ${folder}`);
278
+ })
272
279
  }
273
280
  }
274
281
 
@@ -8,6 +8,10 @@ const configUtils = require('../../../csdr/config/config-utils');
8
8
 
9
9
 
10
10
  const getEnvTarget = (envTarget, build) => {
11
+ if (!envTarget) {
12
+ throw 'ENV_TARGET_NOT_FOUND';
13
+ }
14
+
11
15
  let envTargetFinal = envTarget.toLowerCase();
12
16
 
13
17
  if (build) {