@eui/tools 6.2.9 → 6.2.10

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
- 6.2.9
1
+ 6.2.10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.2.10 (2022-11-11)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted init parameters for CI virtual remotes build - MWP-9010 [MWP-9010](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9010) ([5a5e28de](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5a5e28de787650552cd282d722f2a55424ff1a63))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.2.9 (2022-11-11)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.9",
3
+ "version": "6.2.10",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -8,7 +8,7 @@ const configUtils = require('../config/config-utils');
8
8
  // Getting arguments if they are provided for the CI/CD pipeline
9
9
  const {
10
10
  project, team, pkg, branch, configOnly, skipClone, skipInstall, reset, pkgOnly, prjOnly,
11
- build, containerOnly, skipAppContainers, remote, euiVersion, remoteOnly
11
+ build, containerOnly, skipAppContainers, remote, euiVersion, remoteOnly, remoteBuild, virtual
12
12
  } = tools.getArgs();
13
13
 
14
14
 
@@ -19,6 +19,8 @@ module.exports.init = () => {
19
19
  team: team || 'all',
20
20
  pkg: pkg || null,
21
21
  remote: remote || null,
22
+ remoteBuild: remoteBuild || false,
23
+ virtual: virtual || false,
22
24
  euiVersion: euiVersion || null,
23
25
  branch: branch || 'develop',
24
26
  configOnly: configOnly || false,
@@ -42,6 +44,12 @@ module.exports.init = () => {
42
44
  initialResponse.project = null;
43
45
  }
44
46
 
47
+ // swapping to remote build if virtual remote is pass to default gitlab call
48
+ if (initialResponse.remoteBuild && initialResponse.pkg && initialResponse.virtual) {
49
+ initialResponse.remote = initialResponse.pkg;
50
+ initialResponse.pkg = null;
51
+ }
52
+
45
53
  // Storing the response for propagation
46
54
  var finalResponse;
47
55
 
@@ -116,8 +124,7 @@ module.exports.init = () => {
116
124
  if (finalResponse.euiVersion) {
117
125
  return initUtils.remotes.generateVirtualRemote(remote, euiVersion);
118
126
  } else {
119
- tools.logError('When a remote is initialized, an "euiVersion" parameter must be specified');
120
- process.exit(1);
127
+ throw new Error('When a remote is initialized, an "euiVersion" parameter must be specified');
121
128
  }
122
129
  }
123
130
  })