Compare commits

...
2 changed files with 61 additions and 3 deletions
+12 -2
View File
@@ -42,6 +42,7 @@ export interface ConfigArgs {
scope: string;
host: string;
tag: string;
connectorVariables: any;
}
export const AAE_MICROSERVICES = [
@@ -377,12 +378,19 @@ async function checkIfAppIsReleased(missingApps: any [], tag?: string) {
if (noError) {
await checkDescriptorExist(currentAbsentApp.name);
await sleep(TIME);
const appVariables = {
connectors: currentAbsentApp.variables?.connectors(args.connectorVariables),
uis: currentAbsentApp.variables?.uis,
bridges: currentAbsentApp.variables?.bridges
};
const deployPayload = {
name: currentAbsentApp.name,
releaseId: projectRelease.entry.id,
security: currentAbsentApp.security,
infrastructure: currentAbsentApp.infrastructure,
variables: currentAbsentApp.variables
variables: appVariables
};
await deploy(deployPayload);
}
@@ -482,6 +490,7 @@ async function main() {
.option('--devopsUsername [type]', 'username of a user with role ACTIVIT_DEVOPS')
.option('--devopsPassword [type]', 'devops password')
.option('--tag [type]', 'tag name of the codebase')
.option('--connectorsVariables [type]', 'connector variables object')
.parse(process.argv);
if (process.argv.includes('-h') || process.argv.includes('--help')) {
@@ -502,7 +511,8 @@ async function main() {
tokenEndpoint: options.tokenEndpoint,
scope: options.scope,
secret: options.secret,
tag: options.tag
tag: options.tag,
connectorVariables: options.connectorVariables
};
alfrescoJsApiModeler = getAlfrescoJsApiInstance(args);
+49 -1
View File
@@ -203,7 +203,7 @@ export const ACTIVITI_CLOUD_APPS: any = {
{ role: 'ACTIVITI_ADMIN', groups: [], users: ['superadminuser', 'processadminuser'] },
{ role: 'ACTIVITI_USER', groups: ['hr', 'sales', 'testgroup'], users: ['hruser'] }
],
infrastructure: { connectors: { restconnector: {} }, bridges: {} }
infrastructure: { connectors: () => { } , bridges: {} }
},
UAT_BE_DEFAULT_APP: {
name: 'uat-be-default-app',
@@ -215,6 +215,54 @@ export const ACTIVITI_CLOUD_APPS: any = {
{ role: 'ACTIVITI_ADMIN', groups: [], users: ['processadminuser'] },
{ role: 'ACTIVITI_USER', groups: [], users: ['hruser', 'salesuser'] }
]
},
CONNECTOR_APP: {
name: 'connector-regression',
file_location: (TAG = 'develop') => `https://github.com/Alfresco/alfresco-ng2-components/blob/${TAG}/e2e/resources/activiti7/connector-regression.zip?raw=true`,
processes: {
},
processesData: {
},
forms: {
},
tasks: {
},
security: [
{
role: 'ACTIVITI_ADMIN',
groups: [],
users: ['superadminuser', 'processadminuser']
},
{
role: 'ACTIVITI_USER',
groups: ['hr', 'sales', 'testgroup'],
users: ['hruser']
}
],
infrastructure: {
connectors: {
aspose: {},
calendar: {},
comprehend: {},
content: {},
'docusign-connector': {},
lambda: {},
mariadb: {},
rekognition: {},
rest: {},
'salesforce-connector': {},
slack: {},
teams: {},
textract: {},
transcribe: {},
twilio: {}
}
},
variables: {
connectors: (variables: any = {}) => variables,
uis: {},
bridges: {}
}
}
};