Skip to content

Commit

Permalink
initialize azure pipeline service too
Browse files Browse the repository at this point in the history
  • Loading branch information
outofambit committed Jan 6, 2025
1 parent e8f121b commit 612cd6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ listener.route('/aria-at/:branch*').get(
proxyMiddleware.proxyPath(baseUrl)
);

// Conditionally initialize github workflow service, or mock automation scheduler
// Conditionally initialize github workflow and azure pipelines services,
// or mock automation scheduler
if (
process.env.ENVIRONMENT === 'production' ||
process.env.ENVIRONMENT === 'staging' ||
process.env.ENVIRONMENT === 'sandbox' ||
process.env.AUTOMATION_CALLBACK_FQDN
) {
require('./services/GithubWorkflowService').setup();
require('./services/AzurePipelinesService').setup();
} else {
setupMockAutomationSchedulerServer().catch(error => {
console.error('Failed to initialize mock automation server:', error);
Expand Down

0 comments on commit 612cd6e

Please sign in to comment.