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

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.4",
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
@@ -116,10 +116,10 @@ program
116
116
  .option('-w, --wait', 'Wait for the pipeline to complete', false) // Defaults to false
117
117
  .action(async (cmdObj) => {
118
118
  try {
119
- const { repository, pipelineName, branch, variables, wait } = cmdObj;
119
+ const { repository, pipelineName, branch, variables } = cmdObj;
120
120
 
121
121
  // Call the triggerPipelineByName function
122
- await runPipeline(repository, pipelineName, branch, variables, wait);
122
+ await runPipeline(repository, pipelineName, branch, variables);
123
123
  } catch (error) {
124
124
  console.error('Error triggering pipeline:', error.message);
125
125
  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,
@@ -74,7 +72,7 @@ export async function runPipeline(
74
72
  pipelineName,
75
73
  branch,
76
74
  variables,
77
- wait = false,
75
+ wait,
78
76
  ) {
79
77
  try {
80
78
  console.log(
@@ -85,21 +83,16 @@ export async function runPipeline(
85
83
  pipelineName,
86
84
  branch,
87
85
  variables,
88
- );
89
-
90
- const pipelineUUID = pipeline.uuid;
91
- const buildNumber = pipeline.build_number;
92
-
93
- console.log(`Pipeline triggered with UUID: ${pipelineUUID}`);
94
- console.log(
95
- `See results here: ${BITBUCKET_WS_URL}/${repository}/piplines/results/${buildNumber}`,
86
+ (wait = false),
96
87
  );
97
88
 
98
89
  if (!wait) {
99
90
  return;
100
91
  }
101
92
 
93
+ const pipelineUUID = pipeline.uuid;
102
94
 
95
+ console.log(`Pipeline triggered with UUID: ${pipelineUUID}`);
103
96
  let status = '';
104
97
  do {
105
98
  console.log('Checking pipeline status...');