@docupace/pipeline 1.0.52 → 1.0.54
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/package.json +1 -1
- package/src/next/deploy.js +13 -1
- package/src/next/jira.js +11 -7
package/package.json
CHANGED
package/src/next/deploy.js
CHANGED
|
@@ -330,9 +330,9 @@ export async function deployTemplate(env, site, deployTag) {
|
|
|
330
330
|
export async function deployAppWithTag(application, env, site, deployTag) {
|
|
331
331
|
console.log(`Deploying application: ${application} for site: ${site}`);
|
|
332
332
|
console.log(`Using deployment tag: ${deployTag}`);
|
|
333
|
+
const appDetails = appInfo[application];
|
|
333
334
|
|
|
334
335
|
if (env !== 'dev') {
|
|
335
|
-
const appDetails = appInfo[application];
|
|
336
336
|
await copy2(
|
|
337
337
|
appDetails.repositoryName,
|
|
338
338
|
'dev',
|
|
@@ -345,6 +345,18 @@ export async function deployAppWithTag(application, env, site, deployTag) {
|
|
|
345
345
|
const { repoPath, deployConfigFilePath, deployConfig } =
|
|
346
346
|
await cloneAndReadDeployConfig(application, env, site);
|
|
347
347
|
const updatedConfigData = setTag(deployConfig, deployTag);
|
|
348
|
+
|
|
349
|
+
const {
|
|
350
|
+
deployConfig: toDeployAppConfig,
|
|
351
|
+
deployConfigFilePath: toDeployAppConfigFilePath,
|
|
352
|
+
} = await readDeployConfig(application, env, site, 'app');
|
|
353
|
+
|
|
354
|
+
toDeployAppConfig.revision = appDetails.getAppRevision
|
|
355
|
+
? appDetails.getAppRevision(updatedConfigData)
|
|
356
|
+
: updatedConfigData.image.tag;
|
|
357
|
+
|
|
358
|
+
writeDeployConfig(toDeployAppConfigFilePath, toDeployAppConfig);
|
|
359
|
+
|
|
348
360
|
await writeAndPushDeployConfig(
|
|
349
361
|
repoPath,
|
|
350
362
|
deployConfigFilePath,
|
package/src/next/jira.js
CHANGED
|
@@ -34,15 +34,19 @@ export async function updateComponentVersion(issueKey, packageName, version) {
|
|
|
34
34
|
let currentValue = response.data.fields.customfield_10458 || '';
|
|
35
35
|
let components = new Map();
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
currentValue
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
try {
|
|
38
|
+
// Parse existing components
|
|
39
|
+
if (currentValue) {
|
|
40
|
+
currentValue.split(';').forEach((entry) => {
|
|
41
|
+
const [comp, ver] = entry.split(':');
|
|
42
|
+
components.set(comp, ver);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// Update or add new component version
|
|
46
|
+
} catch {
|
|
47
|
+
console.log('Patch version has incorrect data overriding');
|
|
43
48
|
}
|
|
44
49
|
|
|
45
|
-
// Update or add new component version
|
|
46
50
|
components.set(component, version);
|
|
47
51
|
|
|
48
52
|
// Convert back to string format
|