@docupace/pipeline 1.0.6-alpha.5 → 1.0.6-alpha.7
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 +1 -1
- package/src/next/pipline.js +9 -2
package/package.json
CHANGED
package/src/next/pipline.js
CHANGED
|
@@ -3,6 +3,8 @@ 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
|
+
|
|
6
8
|
async function triggerPipelineByName(
|
|
7
9
|
repository,
|
|
8
10
|
pipelineName,
|
|
@@ -72,7 +74,7 @@ export async function runPipeline(
|
|
|
72
74
|
pipelineName,
|
|
73
75
|
branch,
|
|
74
76
|
variables,
|
|
75
|
-
wait,
|
|
77
|
+
wait = false,
|
|
76
78
|
) {
|
|
77
79
|
try {
|
|
78
80
|
console.log(
|
|
@@ -83,7 +85,6 @@ export async function runPipeline(
|
|
|
83
85
|
pipelineName,
|
|
84
86
|
branch,
|
|
85
87
|
variables,
|
|
86
|
-
(wait = false),
|
|
87
88
|
);
|
|
88
89
|
|
|
89
90
|
if (!wait) {
|
|
@@ -92,7 +93,13 @@ export async function runPipeline(
|
|
|
92
93
|
|
|
93
94
|
const pipelineUUID = pipeline.uuid;
|
|
94
95
|
|
|
96
|
+
const buildNumber = pipeline.build_numner;
|
|
97
|
+
|
|
95
98
|
console.log(`Pipeline triggered with UUID: ${pipelineUUID}`);
|
|
99
|
+
console.log(
|
|
100
|
+
`See results here: ${BITBUCKET_WS_URL}/${repository}/piplines/results/${buildNumber}`,
|
|
101
|
+
);
|
|
102
|
+
|
|
96
103
|
let status = '';
|
|
97
104
|
do {
|
|
98
105
|
console.log('Checking pipeline status...');
|