forked from mekomsolutions/openmrs-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openmrsconfig.js
42 lines (32 loc) · 963 Bytes
/
openmrsconfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"use strict";
const fs = require("fs");
const path = require("path");
const model = require("../../utils/model");
const utils = require("../../utils/utils");
const cmns = require("../commons");
const thisType = "openmrsconfig";
module.exports = {
getInstance: function() {
var projectBuild = new model.ProjectBuild();
projectBuild.getBuildScript = function() {
return cmns.getMavenProjectBuildScript(thisType);
};
projectBuild.getDeployScript = function(artifact) {
return cmns.getMavenProjectDeployScript(
thisType,
"ARTIFACT_UPLOAD_URL_" + thisType
);
};
projectBuild.getArtifact = function(args) {
return cmns.getMavenProjectArtifact(args.pom, "./target", "zip");
};
projectBuild.postBuildActions = function(args) {
cmns.mavenPostBuildActions(
args.pom.groupId,
args.artifactsIds,
args.pom.version
);
};
return projectBuild;
}
};