Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
aa79a02f
Commit
aa79a02f
authored
8 years ago
by
Bogdan Dobrelya
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #854 from bogdando/pipeline
Fix pipeline premoderation/unit-tests
parents
61732847
447febcd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
scripts/premoderator.sh
+1
-0
1 addition, 0 deletions
scripts/premoderator.sh
with
3 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
2
View file @
aa79a02f
...
...
@@ -415,7 +415,7 @@ syntax-check:
script
:
-
ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root cluster.yml -vvv --syntax-check
-
/bin/sh scripts/premoderator.sh
except
:
[
'
triggers'
]
except
:
[
'
triggers'
,
'
master'
]
tox-inventory-builder
:
stage
:
unit-tests
...
...
@@ -424,4 +424,4 @@ tox-inventory-builder:
-
pip install tox
-
cd contrib/inventory_builder && tox
when
:
manual
except
:
[
'
triggers'
]
except
:
[
'
triggers'
,
'
master'
]
This diff is collapsed.
Click to expand it.
scripts/premoderator.sh
+
1
−
0
View file @
aa79a02f
...
...
@@ -11,4 +11,5 @@ issue=$(echo ${CI_BUILD_REF_NAME} | perl -ne '/^pr-(\d+)-\S+$/ && print $1')
user
=
$(
curl
${
CURL_ARGS
}
"https://api.github.com/repos/kubernetes-incubator/kargo/issues/
${
issue
}
/comments"
\
| jq
-M
"map(select(.body | contains (
\"
$MAGIC
\"
))) | .[0] .user.login"
|
tr
-d
'"'
)
# Check for the required user group membership to allow (exit 0) or decline (exit >0) the pipeline
[
"
$user
"
!=
"null"
]
||
exit
1
curl
${
CURL_ARGS
}
"https://api.github.com/orgs/kubernetes-incubator/members/
${
user
}
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment