@docupace/pipeline 1.0.5-alpha.14 → 1.0.5-alpha.15
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/cli.js +4 -1
- package/src/next/jenkins.js +2 -2
package/package.json
CHANGED
package/src/next/cli.js
CHANGED
|
@@ -63,19 +63,22 @@ program
|
|
|
63
63
|
.command('deploy-core <env> <site>')
|
|
64
64
|
.description('Deploy Core')
|
|
65
65
|
.option('-l, --liquibase <liquibase>', 'Application name', 'true')
|
|
66
|
+
.option('-b, --branch <branch>', 'Branch', 'master')
|
|
66
67
|
.action(async (env, site, options) => {
|
|
67
|
-
await deployCore(env, site, options.liquibase);
|
|
68
|
+
await deployCore(env, site, options.liquibase, options.branch);
|
|
68
69
|
});
|
|
69
70
|
|
|
70
71
|
program
|
|
71
72
|
.command('deploy-core-pipeline <env> <site>')
|
|
72
73
|
.description('Deploy Core')
|
|
73
74
|
.option('-l, --liquibase <liquibase>', 'Application name', 'true')
|
|
75
|
+
.option('-b, --branch <branch>', 'Branch', 'master')
|
|
74
76
|
.action(async (env, site, options) => {
|
|
75
77
|
await runPipeline('site-deploy', 'deploy-core', 'main', {
|
|
76
78
|
ENV: env,
|
|
77
79
|
SITE: site,
|
|
78
80
|
LIQUIBASE: options.liquibase,
|
|
81
|
+
GIT_BRANCH: options.branch,
|
|
79
82
|
});
|
|
80
83
|
});
|
|
81
84
|
|
package/src/next/jenkins.js
CHANGED
|
@@ -5,12 +5,12 @@ const JOB_NAME = 'auto-deploy-site';
|
|
|
5
5
|
const USERNAME = process.env.CORE_JENKINS_USERNAME;
|
|
6
6
|
const API_TOKEN = process.env.CORE_JENKINS_API_TOKEN;
|
|
7
7
|
|
|
8
|
-
export async function deployCore(env, site, liquibase) {
|
|
8
|
+
export async function deployCore(env, site, liquibase, gitBranch) {
|
|
9
9
|
const parameters = {
|
|
10
10
|
environment: env,
|
|
11
11
|
site: site.toUpperCase(),
|
|
12
12
|
runLiquibase: liquibase,
|
|
13
|
-
gitBranch
|
|
13
|
+
gitBranch,
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
try {
|