@docupace/pipeline 1.0.6-alpha.6 → 1.0.6-alpha.8
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 +3 -2
- package/src/next/pipline.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docupace/pipeline",
|
|
3
|
-
"version": "1.0.6-alpha.
|
|
3
|
+
"version": "1.0.6-alpha.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -35,6 +35,7 @@
|
|
|
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"
|
|
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 -w"
|
|
39
40
|
}
|
|
40
41
|
}
|
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,
|
|
@@ -91,7 +93,13 @@ export async function runPipeline(
|
|
|
91
93
|
|
|
92
94
|
const pipelineUUID = pipeline.uuid;
|
|
93
95
|
|
|
96
|
+
const buildNumber = pipeline.build_number;
|
|
97
|
+
|
|
94
98
|
console.log(`Pipeline triggered with UUID: ${pipelineUUID}`);
|
|
99
|
+
console.log(
|
|
100
|
+
`See results here: ${BITBUCKET_WS_URL}/${repository}/piplines/results/${buildNumber}`,
|
|
101
|
+
);
|
|
102
|
+
|
|
95
103
|
let status = '';
|
|
96
104
|
do {
|
|
97
105
|
console.log('Checking pipeline status...');
|