@docupace/pipeline 1.0.6-alpha.11 → 1.0.6-alpha.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.6-alpha.11",
3
+ "version": "1.0.6-alpha.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -35,7 +35,6 @@
35
35
  },
36
36
  "scripts": {
37
37
  "test-deploy-core": "dp-next-cli deploy-core-pipeline dev template",
38
- "test-deploy-from-site": "dp-next-cli deploy-from-site --from-env dev --to-env dev --from-site financialdev --to-site template --deploy-core true",
39
- "test-run-pipline": "dp-next-cli run-pipeline -r docupace-next-e2e -b master -p run-tests-qa"
38
+ "test-deploy-from-site": "dp-next-cli deploy-from-site --from-env dev --to-env dev --from-site financialdev --to-site template --deploy-core true"
40
39
  }
41
40
  }
package/src/next/cli.js CHANGED
@@ -112,14 +112,13 @@ program
112
112
  return { ...previous, [key]: val };
113
113
  },
114
114
  {},
115
- )
116
- .option('-w, --wait', 'Wait for the pipeline to complete', false) // Defaults to false
115
+ ) // Initialize as an empty object
117
116
  .action(async (cmdObj) => {
118
117
  try {
119
- const { repository, pipelineName, branch, variables, wait } = cmdObj;
118
+ const { repository, pipelineName, branch, variables } = cmdObj;
120
119
 
121
120
  // Call the triggerPipelineByName function
122
- await runPipeline(repository, pipelineName, branch, variables, wait);
121
+ await runPipeline(repository, pipelineName, branch, variables);
123
122
  } catch (error) {
124
123
  console.error('Error triggering pipeline:', error.message);
125
124
  process.exit(1);
@@ -3,8 +3,6 @@ import { getBitbucketInfo } from './config.js';
3
3
 
4
4
  const BITBUCKET_BASE_URL = 'https://api.bitbucket.org/2.0';
5
5
 
6
- const BITBUCKET_WS_URL = 'https://bitbucket.org/dp-cloud';
7
-
8
6
  async function triggerPipelineByName(
9
7
  repository,
10
8
  pipelineName,
@@ -69,13 +67,7 @@ async function getPipelineStatus(repository, pipelineUUID) {
69
67
  }
70
68
  }
71
69
 
72
- export async function runPipeline(
73
- repository,
74
- pipelineName,
75
- branch,
76
- variables,
77
- wait = false,
78
- ) {
70
+ export async function runPipeline(repository, pipelineName, branch, variables) {
79
71
  try {
80
72
  console.log(
81
73
  `Triggering custom pipeline: ${pipelineName} for branch: ${branch}...`,
@@ -86,20 +78,9 @@ export async function runPipeline(
86
78
  branch,
87
79
  variables,
88
80
  );
89
-
90
81
  const pipelineUUID = pipeline.uuid;
91
- const buildNumber = pipeline.build_number;
92
82
 
93
83
  console.log(`Pipeline triggered with UUID: ${pipelineUUID}`);
94
- console.log(
95
- `See results here: ${BITBUCKET_WS_URL}/${repository}/piplines/results/${buildNumber}`,
96
- );
97
-
98
- if (!wait) {
99
- return;
100
- }
101
-
102
-
103
84
  let status = '';
104
85
  do {
105
86
  console.log('Checking pipeline status...');