@eui/tools 6.21.93 → 6.21.95
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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/scripts/csdr/audit/styles.js +1 -1
- package/scripts/utils/migrate/migrate-utils.js +87 -0
- package/scripts/utils/migrate/skeleton/remote-trigger/.euirc-config.json +5 -0
- package/scripts/utils/migrate/skeleton/remote-trigger/.gitlab-ci.yml +20 -0
- package/scripts/utils/migrate/skeleton/remote-trigger/package.json +5 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.95
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.21.95 (2025-07-04)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted audit-styles forced to sdlc packages - remote migration scripts metadata - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([b199af99](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b199af99b1d49412866487513b33afef89239789))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.94 (2025-07-04)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* migration tool for remote to sdlc - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([e31853c6](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e31853c6d77ee265dfe147f0c12b2dd6f0296320))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.21.93 (2025-07-04)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -760,7 +760,7 @@ module.exports.audit = (pkg) => {
|
|
|
760
760
|
tools.logInfo('===> no forced gates flag detected ...');
|
|
761
761
|
tools.logInfo('Checking if package is newly created -- all versions gates are checked in that case');
|
|
762
762
|
|
|
763
|
-
if (metadataUtils.packageUtils.isNewPackageBuild(pkg)) {
|
|
763
|
+
if (metadataUtils.packageUtils.isNewPackageBuild(pkg) || pkg.sdlc) {
|
|
764
764
|
gates = allNewGates;
|
|
765
765
|
} else {
|
|
766
766
|
if (euiVersionGates) {
|
|
@@ -91,9 +91,96 @@ module.exports.migrate = (pkg) => {
|
|
|
91
91
|
|
|
92
92
|
currentRemoteConfig['msteams'] = { "channel": "pipeline-ui-mwp" };
|
|
93
93
|
|
|
94
|
+
currentRemoteConfig['migrated'] = true;
|
|
95
|
+
|
|
94
96
|
remotesSDLCConfig[newRemoteName] = currentRemoteConfig;
|
|
95
97
|
|
|
96
98
|
tools.writeJsonFileSync(remoteSDLCConfigFile, remotesSDLCConfig);
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
tools.logInfo('Initializing remote trigger repository');
|
|
105
|
+
|
|
106
|
+
const remotesTriggerPath = path.join(process.cwd(), 'remotes-trigger');
|
|
107
|
+
|
|
108
|
+
if (!tools.isDirExists(remotesTriggerPath)) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
tools.copydirFiles(path.join(__dirname, 'skeleton', 'remote-trigger'), path.join(remotesTriggerPath, newRemoteName));
|
|
113
|
+
tools.replaceInFileSync(path.join(remotesTriggerPath, newRemoteName, '.gitlab-ci.yml'), '@module.remote.name@', newRemoteName);
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
tools.logInfo('Importing existing medata for remote');
|
|
120
|
+
|
|
121
|
+
const remoteMedatadataEnvs = path.join(process.cwd(), 'packages', 'devops-metadata', `${currentRemoteName}-envs-metadata.json`);
|
|
122
|
+
const remoteMedatadataVersions = path.join(process.cwd(), 'packages', 'devops-metadata', `${currentRemoteName}-versions-metadata.json`);
|
|
123
|
+
const remoteMedatadataHistory = path.join(process.cwd(), 'packages', 'devops-metadata', `${currentRemoteName}-history-metadata-v2.json`);
|
|
124
|
+
|
|
125
|
+
const remoteMedatadataEnvsNew = path.join(process.cwd(), '.sdlc-metadata', `${newRemoteName}-envs-metadata.json`);
|
|
126
|
+
const remoteMedatadataVersionsNew = path.join(process.cwd(), '.sdlc-metadata', `${newRemoteName}-versions-metadata.json`);
|
|
127
|
+
const remoteMedatadataHistoryNew = path.join(process.cwd(), '.sdlc-metadata', `${newRemoteName}-history-metadata.json`);
|
|
128
|
+
|
|
129
|
+
tools.copy(remoteMedatadataEnvs, remoteMedatadataEnvsNew);
|
|
130
|
+
tools.copy(remoteMedatadataHistory, remoteMedatadataHistoryNew);
|
|
131
|
+
tools.copy(remoteMedatadataVersions, remoteMedatadataVersionsNew);
|
|
132
|
+
|
|
133
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, currentRemoteName, newRemoteName);
|
|
134
|
+
|
|
135
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"DEV"', '"dev"');
|
|
136
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"TST"', '"tst"');
|
|
137
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"INT"', '"int"');
|
|
138
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"ACC"', '"acc"');
|
|
139
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"DLT"', '"dlt"');
|
|
140
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"TRN"', '"trn"');
|
|
141
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"PPD"', '"ppd"');
|
|
142
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '"PROD"', '"prd"');
|
|
143
|
+
|
|
144
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '-TST.', '-tst.');
|
|
145
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '-INT.', '-int.');
|
|
146
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '-ACC.', '-acc.');
|
|
147
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '-DLT.', '-dlt.');
|
|
148
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '-TRN.', '-trn.');
|
|
149
|
+
tools.replaceInFileSync(remoteMedatadataVersionsNew, '-PPD.', '-ppd.');
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"DEV"', '"dev"');
|
|
153
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"TST"', '"tst"');
|
|
154
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"INT"', '"int"');
|
|
155
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"ACC"', '"acc"');
|
|
156
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"DLT"', '"dlt"');
|
|
157
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"TRN"', '"trn"');
|
|
158
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"PPD"', '"ppd"');
|
|
159
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '"PROD"', '"prd"');
|
|
160
|
+
|
|
161
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '-TST.', '-tst.');
|
|
162
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '-INT.', '-int.');
|
|
163
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '-ACC.', '-acc.');
|
|
164
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '-DLT.', '-dlt.');
|
|
165
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '-TRN.', '-trn.');
|
|
166
|
+
tools.replaceInFileSync(remoteMedatadataHistoryNew, '-PPD.', '-ppd.');
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"DEV"', '"dev"');
|
|
170
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"TST"', '"tst"');
|
|
171
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"INT"', '"int"');
|
|
172
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"ACC"', '"acc"');
|
|
173
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"DLT"', '"dlt"');
|
|
174
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"TRN"', '"trn"');
|
|
175
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"PPD"', '"ppd"');
|
|
176
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '"PROD"', '"prd"');
|
|
177
|
+
|
|
178
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '-TST.', '-tst.');
|
|
179
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '-INT.', '-int.');
|
|
180
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '-ACC.', '-acc.');
|
|
181
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '-DLT.', '-dlt.');
|
|
182
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '-TRN.', '-trn.');
|
|
183
|
+
tools.replaceInFileSync(remoteMedatadataEnvsNew, '-PPD.', '-ppd.');
|
|
97
184
|
})
|
|
98
185
|
.catch((e) => {
|
|
99
186
|
console.log(e);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
spec:
|
|
2
|
+
inputs:
|
|
3
|
+
env_target:
|
|
4
|
+
type: string
|
|
5
|
+
default: "dev"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
stages: [build, xlr-deploy]
|
|
9
|
+
|
|
10
|
+
include:
|
|
11
|
+
- component: $CI_SERVER_FQDN/csdr/csdr-templates/shared-components/remote-source-gates@master
|
|
12
|
+
inputs:
|
|
13
|
+
env_target: $[[ inputs.env_target ]]
|
|
14
|
+
- component: $CI_SERVER_FQDN/csdr/csdr-templates/shared-components/remote-release@master
|
|
15
|
+
inputs:
|
|
16
|
+
remote_name: @module.remote.name@
|
|
17
|
+
env_target: $[[ inputs.env_target ]]
|
|
18
|
+
- component: $CI_SERVER_FQDN/csdr/csdr-templates/shared-components/remote-xlr@master
|
|
19
|
+
inputs:
|
|
20
|
+
remote_name: @module.remote.name@
|