indraq_cli 2.0.2 → 2.0.4
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.
|
@@ -8,7 +8,7 @@ export interface CloudConfig {
|
|
|
8
8
|
* Users do not configure this URL. A fresh `npm install -g indraq_cli`
|
|
9
9
|
* can immediately run `indraq login`.
|
|
10
10
|
*/
|
|
11
|
-
export declare const OFFICIAL_CLOUD_API_URL = "https://
|
|
11
|
+
export declare const OFFICIAL_CLOUD_API_URL = "https://cli.indraq.com";
|
|
12
12
|
/**
|
|
13
13
|
* The API URL is intentionally authoritative and built into the CLI.
|
|
14
14
|
* Existing cloud.json files may contain an older apiUrl field; it is ignored
|
|
@@ -10,7 +10,7 @@ const node_path_1 = require("node:path");
|
|
|
10
10
|
* Users do not configure this URL. A fresh `npm install -g indraq_cli`
|
|
11
11
|
* can immediately run `indraq login`.
|
|
12
12
|
*/
|
|
13
|
-
exports.OFFICIAL_CLOUD_API_URL = 'https://
|
|
13
|
+
exports.OFFICIAL_CLOUD_API_URL = 'https://cli.indraq.com';
|
|
14
14
|
const path = (0, node_path_1.join)((0, node_os_1.homedir)(), '.indraq', 'cloud.json');
|
|
15
15
|
const readStoredToken = () => {
|
|
16
16
|
if (!(0, node_fs_1.existsSync)(path))
|
|
@@ -20,9 +20,9 @@ indraqRoles(managedProjectMap).findAll { it.name.startsWith('indraq-') }.each {
|
|
|
20
20
|
}
|
|
21
21
|
Jenkins.get().save()`;
|
|
22
22
|
const seedRole = (username) => `
|
|
23
|
-
def
|
|
24
|
-
indraqRequireRoleStrategy(
|
|
25
|
-
def itemMap =
|
|
23
|
+
def seedStrategy = Jenkins.get().authorizationStrategy
|
|
24
|
+
indraqRequireRoleStrategy(seedStrategy)
|
|
25
|
+
def itemMap = seedStrategy.getRoleMap(indraqRoleType('Project'))
|
|
26
26
|
def seedRole = itemMap.getRole('indraq-create-deployment')
|
|
27
27
|
if (seedRole == null) {
|
|
28
28
|
Set<Permission> seedPermissions = new HashSet<Permission>()
|
package/package.json
CHANGED