@docupace/pipeline 1.0.3-1.demo1 → 1.0.4-1.haproxysync.1

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,47 +1,47 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
-
4
- export async function validateChangesets(directoryPath) {
5
- try {
6
- // Step 1: Read the directory for md files excluding README.md
7
- const allFiles = fs.readdirSync(directoryPath);
8
- const mdFiles = allFiles.filter(
9
- (file) => file.endsWith('.md') && file !== 'README.md',
10
- );
11
-
12
- // Step 2: Check for pre.json and parse it
13
- const preJsonPath = path.join(directoryPath, 'pre.json');
14
- let preJson;
15
-
16
- if (!fs.existsSync(preJsonPath) && mdFiles.length === 0) {
17
- throw new Error('Error: No pre.json and no md files found.');
18
- }
19
-
20
- if (fs.existsSync(preJsonPath)) {
21
- preJson = JSON.parse(fs.readFileSync(preJsonPath, 'utf-8'));
22
-
23
- if (preJson.mode == 'pre') {
24
- // Step 4a: Get list of changesets from pre.json
25
- const changesets = preJson.changesets || [];
26
- const changesetNames = changesets.map((change) => change);
27
-
28
- // Step 4b: Match files with the list of changesets
29
- const mdFileNamesWithoutExt = mdFiles.map((file) =>
30
- path.basename(file, '.md'),
31
- );
32
- const unmatchedFiles = mdFileNamesWithoutExt.filter(
33
- (fileName) => !changesetNames.includes(fileName),
34
- );
35
-
36
- if (unmatchedFiles.length == 0) {
37
- throw new Error('Error: No new MD files found:');
38
- }
39
- }
40
- }
41
-
42
- console.log('Validation successful.');
43
- } catch (error) {
44
- console.log(error.message);
45
- throw error;
46
- }
47
- }
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+
4
+ export async function validateChangesets(directoryPath) {
5
+ try {
6
+ // Step 1: Read the directory for md files excluding README.md
7
+ const allFiles = fs.readdirSync(directoryPath);
8
+ const mdFiles = allFiles.filter(
9
+ (file) => file.endsWith('.md') && file !== 'README.md',
10
+ );
11
+
12
+ // Step 2: Check for pre.json and parse it
13
+ const preJsonPath = path.join(directoryPath, 'pre.json');
14
+ let preJson;
15
+
16
+ if (!fs.existsSync(preJsonPath) && mdFiles.length === 0) {
17
+ throw new Error('Error: No pre.json and no md files found.');
18
+ }
19
+
20
+ if (fs.existsSync(preJsonPath)) {
21
+ preJson = JSON.parse(fs.readFileSync(preJsonPath, 'utf-8'));
22
+
23
+ if (preJson.mode == 'pre') {
24
+ // Step 4a: Get list of changesets from pre.json
25
+ const changesets = preJson.changesets || [];
26
+ const changesetNames = changesets.map((change) => change);
27
+
28
+ // Step 4b: Match files with the list of changesets
29
+ const mdFileNamesWithoutExt = mdFiles.map((file) =>
30
+ path.basename(file, '.md'),
31
+ );
32
+ const unmatchedFiles = mdFileNamesWithoutExt.filter(
33
+ (fileName) => !changesetNames.includes(fileName),
34
+ );
35
+
36
+ if (unmatchedFiles.length == 0) {
37
+ throw new Error('Error: No new MD files found:');
38
+ }
39
+ }
40
+ }
41
+
42
+ console.log('Validation successful.');
43
+ } catch (error) {
44
+ console.log(error.message);
45
+ throw error;
46
+ }
47
+ }
@@ -1,59 +1,59 @@
1
- import groovy.json.JsonSlurper
2
-
3
- import hudson.model.*;
4
-
5
- def build = Thread.currentThread().executable
6
- def params = build.getEnvironment(listener)
7
-
8
- def site = params.get('site')
9
- def server = "jboss7"
10
- def environment = params.get('environment')
11
-
12
- def buildFile=new File("D:\\Docupace\\CustomFolders\\" + environment + "\\" + site + "\\" + server + "\\buildApp.properties")
13
-
14
- List<String> jboss7controllerResult = []
15
-
16
- def controllersReport = new File("D:\\Docupace\\controllers_report.json")
17
- def inputJSON = new JsonSlurper().parseText(controllersReport.text)
18
- def props = new Properties()
19
- buildFile.withInputStream { stream -> props.load(stream) }
20
- def webRootContext = props["web.root.context"]
21
- if (webRootContext == null || webRootContext =="core") webRootContext = props["docupace.config.client.id"].toLowerCase()
22
-
23
- webRootContext = webRootContext.replaceFirst('_sso','')
24
- def map = inputJSON.'content'
25
-
26
- def Boolean enabled
27
-
28
- map.each {k,v ->
29
- v.each{vk, vv -> if (vk == webRootContext ) {
30
- enabled = false
31
- if(vv.deploymentsProperty.size()>0) enabled = vv.deploymentsProperty[0].isEnabled
32
- if (enabled) jboss7controllerResult.push(k)
33
- else jboss7controllerResult << k
34
- }
35
- }
36
- }
37
-
38
- if (jboss7controllerResult.size()>0) {
39
- if (environment == 'preprod') {
40
- jboss7controllerResult.remove("dev-corjbdc10.corp.docupace.com")
41
- jboss7controllerResult.remove("usdoc-s-jbdc1.corp.docupace.com")
42
- }
43
- if (environment == 'dev') {
44
- jboss7controllerResult.remove("qa-corjbdc10.corp.docupace.com")
45
- jboss7controllerResult.remove("qa-corjbdc20.corp.docupace.com")
46
- jboss7controllerResult.remove("usdoc-s-jbdc2.corp.docupace.com")
47
- }
48
- }
49
-
50
- println jboss7controllerResult[0]
51
-
52
- env.jboss7controller = jboss7controllerResult[0]
53
-
54
- def serverGroup = inputJSON.'content'."${jboss7controller}"."${webRootContext}".'serverGroup'
55
-
56
- println serverGroup
57
-
58
- params.put("serverGroup", serverGroup)
59
-
1
+ import groovy.json.JsonSlurper
2
+
3
+ import hudson.model.*;
4
+
5
+ def build = Thread.currentThread().executable
6
+ def params = build.getEnvironment(listener)
7
+
8
+ def site = params.get('site')
9
+ def server = "jboss7"
10
+ def environment = params.get('environment')
11
+
12
+ def buildFile=new File("D:\\Docupace\\CustomFolders\\" + environment + "\\" + site + "\\" + server + "\\buildApp.properties")
13
+
14
+ List<String> jboss7controllerResult = []
15
+
16
+ def controllersReport = new File("D:\\Docupace\\controllers_report.json")
17
+ def inputJSON = new JsonSlurper().parseText(controllersReport.text)
18
+ def props = new Properties()
19
+ buildFile.withInputStream { stream -> props.load(stream) }
20
+ def webRootContext = props["web.root.context"]
21
+ if (webRootContext == null || webRootContext =="core") webRootContext = props["docupace.config.client.id"].toLowerCase()
22
+
23
+ webRootContext = webRootContext.replaceFirst('_sso','')
24
+ def map = inputJSON.'content'
25
+
26
+ def Boolean enabled
27
+
28
+ map.each {k,v ->
29
+ v.each{vk, vv -> if (vk == webRootContext ) {
30
+ enabled = false
31
+ if(vv.deploymentsProperty.size()>0) enabled = vv.deploymentsProperty[0].isEnabled
32
+ if (enabled) jboss7controllerResult.push(k)
33
+ else jboss7controllerResult << k
34
+ }
35
+ }
36
+ }
37
+
38
+ if (jboss7controllerResult.size()>0) {
39
+ if (environment == 'preprod') {
40
+ jboss7controllerResult.remove("dev-corjbdc10.corp.docupace.com")
41
+ jboss7controllerResult.remove("usdoc-s-jbdc1.corp.docupace.com")
42
+ }
43
+ if (environment == 'dev') {
44
+ jboss7controllerResult.remove("qa-corjbdc10.corp.docupace.com")
45
+ jboss7controllerResult.remove("qa-corjbdc20.corp.docupace.com")
46
+ jboss7controllerResult.remove("usdoc-s-jbdc2.corp.docupace.com")
47
+ }
48
+ }
49
+
50
+ println jboss7controllerResult[0]
51
+
52
+ env.jboss7controller = jboss7controllerResult[0]
53
+
54
+ def serverGroup = inputJSON.'content'."${jboss7controller}"."${webRootContext}".'serverGroup'
55
+
56
+ println serverGroup
57
+
58
+ params.put("serverGroup", serverGroup)
59
+
package/src/next/alias.js CHANGED
@@ -1,53 +1,53 @@
1
- import { BasicAuth, DomainApi } from '@docupace/core-client';
2
-
3
- const userFilter = (userId) => {
4
- return {
5
- orSections: [
6
- {
7
- andSections: [
8
- {
9
- attrId: 9501,
10
- '@type': 'string',
11
- not: false,
12
- orSections: [
13
- { searchType: 'EXACT_MATCH', matchToValues: [userId] },
14
- ],
15
- },
16
- ],
17
- },
18
- ],
19
- };
20
- };
21
-
22
- /*
23
- Example:
24
- await createAlias(
25
- 'https://www.dev.docupaceinc.com/financialdev',
26
- 'docupace',
27
- 'pw',
28
- 'Connect',
29
- 'qhnospjRjwUAeKFDhucHEabPsfihrGQQ@clients',
30
- );
31
- */
32
- export async function createAlias(coreUrl, username, password, realm, alias) {
33
- const coreInfo = {
34
- url: coreUrl,
35
- };
36
-
37
- let auth = new BasicAuth(username, password);
38
-
39
- const domainApi = new DomainApi(coreInfo, auth);
40
-
41
- const userResults = await domainApi.listRecords(50, {
42
- filter: JSON.stringify(userFilter(username)),
43
- });
44
-
45
- const record = {
46
- domainId: 302,
47
- '5001': userResults.records[0].id,
48
- '9102': realm,
49
- '9504': alias,
50
- };
51
-
52
- await domainApi.create(record);
53
- }
1
+ import { BasicAuth, DomainApi } from '@docupace/core-client';
2
+
3
+ const userFilter = (userId) => {
4
+ return {
5
+ orSections: [
6
+ {
7
+ andSections: [
8
+ {
9
+ attrId: 9501,
10
+ '@type': 'string',
11
+ not: false,
12
+ orSections: [
13
+ { searchType: 'EXACT_MATCH', matchToValues: [userId] },
14
+ ],
15
+ },
16
+ ],
17
+ },
18
+ ],
19
+ };
20
+ };
21
+
22
+ /*
23
+ Example:
24
+ await createAlias(
25
+ 'https://www.dev.docupaceinc.com/financialdev',
26
+ 'docupace',
27
+ 'pw',
28
+ 'Connect',
29
+ 'qhnospjRjwUAeKFDhucHEabPsfihrGQQ@clients',
30
+ );
31
+ */
32
+ export async function createAlias(coreUrl, username, password, realm, alias) {
33
+ const coreInfo = {
34
+ url: coreUrl,
35
+ };
36
+
37
+ let auth = new BasicAuth(username, password);
38
+
39
+ const domainApi = new DomainApi(coreInfo, auth);
40
+
41
+ const userResults = await domainApi.listRecords(50, {
42
+ filter: JSON.stringify(userFilter(username)),
43
+ });
44
+
45
+ const record = {
46
+ domainId: 302,
47
+ '5001': userResults.records[0].id,
48
+ '9102': realm,
49
+ '9504': alias,
50
+ };
51
+
52
+ await domainApi.create(record);
53
+ }
@@ -1,64 +1,40 @@
1
- import { $ } from 'zx';
2
- import fs from 'fs/promises';
3
-
4
- export async function addApacheSite() {
5
- if (
6
- !process.env.ENVIRONMENT ||
7
- (process.env.ENVIRONMENT !== 'dev' && process.env.ENVIRONMENT !== 'qa')
8
- ) {
9
- console.log("Error: ENVIRONMENT must be either 'dev' or 'qa'.");
10
- process.exit(1);
11
- }
12
- if (!process.env.SITE) {
13
- console.log('Error: SITE cannot be empty.');
14
- process.exit(1);
15
- }
16
-
17
- // Save private key from base64
18
- const haproxyPrivateKey = process.env.HAPROXY_PRIVATE_KEY;
19
- if (!haproxyPrivateKey) {
20
- console.log('Error: HAPROXY_PRIVATE_KEY not set.');
21
- process.exit(1);
22
- }
23
-
24
- await fs.writeFile('private.key', Buffer.from(haproxyPrivateKey, 'base64'));
25
- await fs.chmod('private.key', 0o600);
26
-
27
- console.log('Running command on apalb01a');
28
- const sshCmd = async (server, script) => {
29
- $.nothrow = true; // Don't throw on non-zero exit code
30
- const result =
31
- await $`ssh -i private.key -o StrictHostKeyChecking=no root@${server} ${script}`.stdio(
32
- 'inherit',
33
- );
34
- $.nothrow = false; // Reset the flag
35
- return result;
36
- };
37
-
38
- let server = `${process.env.ENVIRONMENT}-apalb01a.corp.docupace.com`;
39
- const resultA = await sshCmd(
40
- server,
41
- `/root/repo/iis-preprod/scripts/addsite/add_core_site.sh ${process.env.ENVIRONMENT} ${process.env.SITE}`,
42
- );
43
-
44
- if (resultA.exitCode !== 0) {
45
- console.error(`Error on ${server}:`);
46
- console.error(resultA.stderr);
47
- } else {
48
- console.log(`Finished command on ${server} successfully.`);
49
- }
50
-
51
- console.log('Running command on apalb01b');
52
- server = `${process.env.ENVIRONMENT}-apalb01b.corp.docupace.com`;
53
- const resultB = await sshCmd(
54
- server,
55
- `/root/repo/iis-preprod/scripts/addsite/add_core_site.sh ${process.env.ENVIRONMENT} ${process.env.SITE}`,
56
- );
57
-
58
- if (resultB.exitCode !== 0) {
59
- console.error(`Error on ${server}:`);
60
- console.error(resultB.stderr);
61
- } else {
62
- console.log(`Finished command on ${server} successfully.`);
63
- }
64
- }
1
+ import { $ } from 'zx';
2
+
3
+ export async function addApacheSite() {
4
+ if (
5
+ !process.env.ENVIRONMENT ||
6
+ (process.env.ENVIRONMENT !== 'dev' && process.env.ENVIRONMENT !== 'qa')
7
+ ) {
8
+ log("Error: ENVIRONMENT must be either 'dev' or 'qa'.");
9
+ process.exit(1);
10
+ }
11
+ if (!process.env.SITE) {
12
+ log('Error: SITE cannot be empty.');
13
+ process.exit(1);
14
+ }
15
+
16
+ // Save private key from base64
17
+ const haproxyPrivateKey = process.env.HAPROXY_PRIVATE_KEY;
18
+ if (!haproxyPrivateKey) {
19
+ log('Error: HAPROXY_PRIVATE_KEY not set.');
20
+ process.exit(1);
21
+ }
22
+
23
+ await fs.writeFile('private.key', Buffer.from(haproxyPrivateKey, 'base64'));
24
+ await fs.chmod('private.key', 0o600);
25
+
26
+
27
+ console.log("Running command");
28
+ const sshCmd = (server,script) =>
29
+ $`ssh -i private.key -o StrictHostKeyChecking=no root@${server} ${script}`;
30
+
31
+ let server = `${process.env.ENVIRONMENT}-apalb01a.corp.docupace.com`;
32
+ // The script is run twice in the Bash version
33
+ await sshCmd(server, `/root/repo/iis-preprod/scripts/addsite/add_core_site.sh ${process.env.ENVIRONMENT} ${process.env.SITE}`);
34
+
35
+ server = `${process.env.ENVIRONMENT}-apalb01b.corp.docupace.com`;
36
+
37
+ await sshCmd(server,`/root/repo/iis-preprod/scripts/addsite/add_core_site.sh ${process.env.ENVIRONMENT} ${process.env.SITE}`);
38
+ }
39
+
40
+
package/src/next/cli.js CHANGED
@@ -4,7 +4,12 @@ import { Command } from 'commander';
4
4
  import { pull } from './pull.js';
5
5
  import { sonar } from './sonar.js';
6
6
  import { publish } from './publish.js';
7
- import { deployFromSite } from './deploy.js';
7
+ import {
8
+ deployAppWithTag,
9
+ deployFromSite,
10
+ getDefaultDeploySite,
11
+ getDeployTag,
12
+ } from './deploy.js';
8
13
  import { deployTemplate } from './deploy.js';
9
14
  import { copy } from './copy.js';
10
15
  import { vaultAddSiteData } from './vault.js';
@@ -101,10 +106,30 @@ program
101
106
  });
102
107
 
103
108
  program
104
- .command('deployTemplate <site>')
109
+ .command('deploy-template')
105
110
  .description('Deploy an application for a specific site')
106
- .action(async (site) => {
107
- await deployTemplate(site);
111
+ .action(async () => {
112
+ const deployTag = await getDeployTag();
113
+ const { env, site } = await getDefaultDeploySite(deployTag);
114
+ await deployTemplate(env, site, deployTag);
115
+ });
116
+
117
+ program
118
+ .command('deployTemplate')
119
+ .description('Deploy an application for a specific site')
120
+ .action(async () => {
121
+ const deployTag = await getDeployTag();
122
+ const { env, site } = await getDefaultDeploySite(deployTag);
123
+ await deployTemplate(env, site, deployTag);
124
+ });
125
+
126
+ program
127
+ .command('deploy-app <application>')
128
+ .description('Deploy an application for a specific site')
129
+ .action(async (application) => {
130
+ const deployTag = await getDeployTag();
131
+ const { env, site } = await getDefaultDeploySite(deployTag);
132
+ await deployAppWithTag(application, env, site, deployTag);
108
133
  });
109
134
 
110
135
  program
@@ -1,84 +1,99 @@
1
- export const environments = ['dev', 'qa', 'uat', 'stage', 'prod'];
2
-
3
- export const environmentConfig = {
4
- dev: {
5
- newUrl: (site) => `https://${site}.dev.dpai.tech`,
6
- oldUrl: (site) => `https://www.dev.docupaceinc.com/${site}`,
7
- docupaceHost: () => 'www.dev.docupaceinc.com',
8
- },
9
- qa: {
10
- newUrl: (site) => `https://${site}.qa.dpai.tech`,
11
- oldUrl: (site) => `https://www.preprod.docupaceinc.com/${site}`,
12
- docupaceHost: () => 'www.preprod.docupaceinc.com',
13
- },
14
- uat: {
15
- newUrl: (site) => `https://${site}.qa.dpai.tech`,
16
- oldUrl: (site) => `https://www2.paperout.com/${site}_uat`,
17
- docupaceHost: () => 'www2.paperout.com',
18
- },
19
- stage: {
20
- newUrl: (site) => `https://${site}.stage.dpai.tech`,
21
- oldUrl: (site) => `https://www2.paperout.com/${site}_staging`,
22
- docupaceHost: () => 'www2.paperout.com',
23
- },
24
- prod: {
25
- newUrl: (site) => `https://${site}.dpai.tech`,
26
- oldUrl: (site) => `https://www2.paperout.com/${site}`,
27
- docupaceHost: () => 'www2.paperout.com',
28
- },
29
- };
30
-
31
- export const appInfo = {
32
- 'graphql-server': {
33
- repositoryName: 'docupace-graphql-server',
34
- deployAttributes: [
35
- 'image.tag',
36
- 'graphqlServer.siteConfigRemoteBranch',
37
- 'graphqlServer.standardConfigRemoteBranch',
38
- ],
39
- },
40
- ui: {
41
- repositoryName: 'docupace-ui-main',
42
- deployAttributes: ['image.tag'],
43
- },
44
- };
45
-
46
- export const getEnvInfo = () => {
47
- const envInfo = Object.fromEntries(
48
- environments.map((env) => [
49
- env,
50
- {
51
- jfrog: {
52
- username: process.env[`JF_REGISTRY_${env.toUpperCase()}_USERNAME`],
53
- password: process.env[`JF_REGISTRY_${env.toUpperCase()}_PASSWORD`],
54
- },
55
- },
56
- ]),
57
- );
58
-
59
- return envInfo;
60
- };
61
-
62
- export const getBitbucketInfo = () => {
63
- return {
64
- username: process.env.BITBUCKET_USERNAME,
65
- password: process.env.BITBUCKET_APP_PASSWORD,
66
- workspace: 'dp-cloud',
67
- };
68
- };
69
-
70
- export const getRepUrl = (repoName) => {
71
- const { username, password, workspace } = getBitbucketInfo();
72
- return `https://${username}:${password}@bitbucket.org/${workspace}/${repoName}.git`;
73
- };
74
-
75
- export const jfRegistryUrl = 'registry.paperout.com';
76
-
77
- export const getVaultSecretsConfigs = (site) => {
78
- return {
79
- commonSecretsPath: 'secret/data/common/config',
80
- siteCommonSecretsPath: `secret/data/${site}/common/config`,
81
- graphqlServerSecretsPath: `secret/data/${site}/graphql-server/config`,
82
- uiSecretsPath: `secret/data/${site}/ui/config`,
83
- };
84
- };
1
+ export const environments = ['dev', 'qa', 'uat', 'stage', 'prod'];
2
+
3
+ export const environmentConfig = {
4
+ dev: {
5
+ newUrl: (site) => `https://${site}.dev.dpai.tech`,
6
+ oldUrl: (site) => `https://www.dev.docupaceinc.com/${site}`,
7
+ docupaceHost: () => 'www.dev.docupaceinc.com',
8
+ ccUrl: (site) => `https://${site}-cc.dev.dpai.tech`,
9
+ },
10
+ qa: {
11
+ newUrl: (site) => `https://${site}.qa.dpai.tech`,
12
+ oldUrl: (site) => `https://www.preprod.docupaceinc.com/${site}`,
13
+ docupaceHost: () => 'www.preprod.docupaceinc.com',
14
+ ccUrl: (site) => `https://${site}-cc.qa.dpai.tech`,
15
+ },
16
+ uat: {
17
+ newUrl: (site) => `https://${site}.uat.dpai.tech`,
18
+ oldUrl: (site) => `https://www2.paperout.com/${site}_uat`,
19
+ docupaceHost: () => 'www2.paperout.com',
20
+ ccUrl: (site) => `https://${site}-cc.uat.dpai.tech`,
21
+ },
22
+ stage: {
23
+ newUrl: (site) => `https://${site}.stg.dpai.tech`,
24
+ oldUrl: (site) => `https://www2.paperout.com/${site}_staging`,
25
+ docupaceHost: () => 'www2.paperout.com',
26
+ ccUrl: (site) => `https://${site}-cc.stg.dpai.tech`,
27
+ },
28
+ prod: {
29
+ newUrl: (site) => `https://${site}.dpai.tech`,
30
+ oldUrl: (site) => `https://www2.paperout.com/${site}`,
31
+ docupaceHost: () => 'www2.paperout.com',
32
+ ccUrl: (site) => `https://${site}-cc.dpai.tech`,
33
+ },
34
+ };
35
+
36
+ export const appInfo = {
37
+ 'graphql-server': {
38
+ repositoryName: 'docupace-graphql-server',
39
+ deployAttributes: [
40
+ 'image.tag',
41
+ 'graphqlServer.siteConfigRemoteBranch',
42
+ 'graphqlServer.standardConfigRemoteBranch',
43
+ ],
44
+ },
45
+ ui: {
46
+ repositoryName: 'docupace-ui-main',
47
+ deployAttributes: ['image.tag'],
48
+ },
49
+ };
50
+
51
+ export const getEnvInfo = () => {
52
+ const envInfo = Object.fromEntries(
53
+ environments.map((env) => [
54
+ env,
55
+ {
56
+ jfrog: {
57
+ username: process.env[`JF_REGISTRY_${env.toUpperCase()}_USERNAME`],
58
+ password: process.env[`JF_REGISTRY_${env.toUpperCase()}_PASSWORD`],
59
+ },
60
+ },
61
+ ]),
62
+ );
63
+
64
+ return envInfo;
65
+ };
66
+
67
+ export const getBitbucketInfo = () => {
68
+ return {
69
+ username: process.env.BITBUCKET_USERNAME,
70
+ password: process.env.BITBUCKET_APP_PASSWORD,
71
+ workspace: 'dp-cloud',
72
+ };
73
+ };
74
+
75
+ export const getRepUrl = (repoName) => {
76
+ const { username, password, workspace } = getBitbucketInfo();
77
+ return `https://${username}:${password}@bitbucket.org/${workspace}/${repoName}.git`;
78
+ };
79
+
80
+ export const jfRegistryUrl = 'registry.paperout.com';
81
+
82
+ export const getVaultSecretsConfigs = (site) => {
83
+ return {
84
+ commonSecretsPath: 'secret/data/common/config',
85
+ siteCommonSecretsPath: `secret/data/${site}/common/config`,
86
+ graphqlServerSecretsPath: `secret/data/${site}/graphql-server/config`,
87
+ uiSecretsPath: `secret/data/${site}/ui/config`,
88
+ ccUISecretsPath: `secret/data/${site}/ui-cc/config`,
89
+ awsSecretsPath: `secret/data/${site}/aws/config`,
90
+ };
91
+ };
92
+
93
+ export const coreSiteEnvMap = {
94
+ dev: 'dev',
95
+ qa: 'preprod',
96
+ stg: 'staging',
97
+ uat: 'uat',
98
+ prd: 'prod',
99
+ };