screwdriver-api 7.0.151 → 7.0.153
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-api",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.153",
|
|
4
4
|
"description": "API server for the Screwdriver.cd service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
"debug": "node --nolazy ./bin/server",
|
|
12
12
|
"profile": "node --prof ./bin/server",
|
|
13
13
|
"functional": "cucumber-js --format=progress --tags '(not @ignore) and (not @beta)' --retry 2 --fail-fast --exit",
|
|
14
|
-
"functional-beta": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod)' --retry 2 --fail-fast --exit",
|
|
15
14
|
"functional-dev": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod)' --retry 2 --fail-fast --exit",
|
|
15
|
+
"functional-beta": "npm run functional-beta-parallel && npm run functional-beta-non-parallel",
|
|
16
|
+
"functional-beta-parallel": "cucumber-js --parallel 10 --format=progress --tags '(not @ignore) and (not @prod) and @parallel' --retry 2 --fail-fast --exit",
|
|
17
|
+
"functional-beta-non-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and (not @parallel)' --retry 2 --fail-fast --exit",
|
|
16
18
|
"create-test-user": "node -e 'require(\"./features/scripts/create-test-user.js\")()'",
|
|
17
19
|
"diagrams": "find ./design/diagrams -type f -name \\*.puml -print0 | xargs -0 -n 1 -I DIAGRAM puml generate DIAGRAM -o DIAGRAM.png",
|
|
18
20
|
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
|
|
@@ -87,7 +87,7 @@ async function updateAdmins(userFactory, username, scmContext, pipeline, pipelin
|
|
|
87
87
|
|
|
88
88
|
try {
|
|
89
89
|
const user = await userFactory.get({ username, scmContext });
|
|
90
|
-
const userPermissions = await user.getPermissions(pipeline.scmUri);
|
|
90
|
+
const userPermissions = await user.getPermissions(pipeline.scmUri, user.scmContext, pipeline.scmRepo);
|
|
91
91
|
|
|
92
92
|
// Delete user from admin list if bad permissions
|
|
93
93
|
if (!userPermissions.push) {
|
|
@@ -999,6 +999,7 @@ async function createEvents(
|
|
|
999
999
|
const scmConfig = {
|
|
1000
1000
|
scmUri: pTuple.pipeline.scmUri,
|
|
1001
1001
|
token,
|
|
1002
|
+
scmRepo: pTuple.pipeline.scmRepo,
|
|
1002
1003
|
scmContext
|
|
1003
1004
|
};
|
|
1004
1005
|
// obtain pipeline's latest commit sha for branch specific job
|