test
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
import * as plugins from "./npmci.plugins";
|
||||
import * as plugins from './npmci.plugins'
|
||||
|
||||
/**
|
||||
* servezoneRegex is the regex that parses the servezone connection data
|
||||
* parses strings in the form of "servezone.example.com|3000|somepassword"
|
||||
*/
|
||||
let servezoneRegex = /^(.*)\|(.*)\|(.*)/;
|
||||
let servezoneRegex = /^(.*)\|(.*)\|(.*)/
|
||||
|
||||
/**
|
||||
* holds the results of the parsed servezone env string
|
||||
*/
|
||||
let servezoneRegexResultArray = servezoneRegex.exec(process.env.NPMCI_SERVEZONE);
|
||||
let servezoneRegexResultArray = servezoneRegex.exec(process.env.NPMCI_SERVEZONE)
|
||||
|
||||
/**
|
||||
* the data object that is used for the smartsocket client object
|
||||
*/
|
||||
let smartsocketClientConstructorOptions = {
|
||||
alias: "npmci",
|
||||
alias: 'npmci',
|
||||
password: servezoneRegexResultArray[3],
|
||||
port: parseInt(servezoneRegexResultArray[2]),
|
||||
role: "ci",
|
||||
role: 'ci',
|
||||
url: servezoneRegexResultArray[1]
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* the main run function to submit a service to a servezone
|
||||
@@ -28,5 +28,5 @@ let smartsocketClientConstructorOptions = {
|
||||
export let run = (configArg) => {
|
||||
new plugins.smartsocket.SmartsocketClient(
|
||||
smartsocketClientConstructorOptions
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user