@eui/tools 6.20.12 → 6.20.14

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.20.12
1
+ 6.20.14
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.20.14 (2024-08-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * re-enable full remote standalone pipeline - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([5b7ea883](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5b7ea883d53be6d514f9335a8734eb13a04d7d26))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.20.13 (2024-08-09)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted git clone destination folder to full path - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([d8fa9c90](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d8fa9c90d272126017743392483a53bddbe2c343))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.20.12 (2024-08-09)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.12",
3
+ "version": "6.20.14",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -61,7 +61,10 @@ const cloneRemotesConfig = module.exports.cloneRemotesConfig = () => {
61
61
  const cloneRemotesConfigStandalone = module.exports.cloneRemotesConfigStandalone = () => {
62
62
  return Promise.resolve()
63
63
  .then(() => {
64
- return gitUtils.cloneRepoStandalone('csdr-config','.config');
64
+ return gitUtils.cloneRepoStandalone(
65
+ 'csdr-config',
66
+ path.join(process.cwd(), '.config')
67
+ );
65
68
  })
66
69
 
67
70
  .catch((e) => {
@@ -59,20 +59,14 @@ module.exports.cloneMetadataRepoStandalone = () => {
59
59
 
60
60
  tools.logTitle('Cloning devops metadata repo');
61
61
 
62
- if (dryRun || skipClone) {
63
- tools.logInfo('DRY-RUN: cloning skipped');
64
- return Promise.resolve();
65
-
66
- } else {
67
- return Promise.resolve()
68
- .then(() => {
69
- return gitUtils.cloneRepoStandalone(
70
- configOptions.DEVOPS_METADATA_REPOSITORY,
71
- configOptions.DEVOPS_METADATA_PATH
72
- );
73
- })
74
- .catch((e) => {
75
- throw e;
76
- })
77
- }
62
+ return Promise.resolve()
63
+ .then(() => {
64
+ return gitUtils.cloneRepoStandalone(
65
+ configOptions.DEVOPS_METADATA_REPOSITORY,
66
+ configOptions.DEVOPS_METADATA_PATH
67
+ );
68
+ })
69
+ .catch((e) => {
70
+ throw e;
71
+ })
78
72
  }
@@ -20,7 +20,7 @@ const innerCommon = require('./common');
20
20
  // LOCAL TEST :
21
21
  // - symlink eUI tools sources to node_modules of standalone pkg folder node_modules to test
22
22
  // - execute this command on the standalone pkg folder :
23
- // npx @eui/tools release-remote-standalone --remoteName zzz-test-remote-eui18 --dryRun --debug --debugNotification
23
+ // npx @eui/tools release-remote-standalone --remoteName zzz-test-remote-eui18 --envTarget DEV --dryRun --debug --debugNotification --debugGitUpdates --skipPublish
24
24
 
25
25
 
26
26
 
@@ -292,8 +292,9 @@ const cloneRepoStandalone = (repoName, destinationFolder) => {
292
292
  const auth = process.env.gituser && process.env.gitpassword ? `${process.env.gituser}:${process.env.gitpassword}@` : '';
293
293
  const gitHost = configUtils.global.getConfigOptionsStandalone().GIT_HOST_REMOTE;
294
294
 
295
+ tools.logInfo(`executing : for host: ${gitHost} - repoName: ${repoName} - destination folder: ${destinationFolder}`);
296
+
295
297
  if (!tools.isDirExists(destinationFolder)) {
296
- tools.logInfo(`executing : for host: ${gitHost} - repoName: ${repoName}`);
297
298
 
298
299
  if (skipGitUpdates) {
299
300
  tools.logInfo('DRY RUN - skipping');
@@ -302,9 +303,9 @@ const cloneRepoStandalone = (repoName, destinationFolder) => {
302
303
  }
303
304
  }
304
305
 
305
- const pullFolder = path.join(folder, destinationFolder);
306
+ tools.logInfo(`pulling folder: ${destinationFolder}`);
306
307
 
307
- execa.shellSync(`git pull`, { cwd: pullFolder, stdio: 'inherit' });
308
+ execa.shellSync(`git pull`, { cwd: destinationFolder, stdio: 'inherit' });
308
309
  }
309
310
 
310
311