Skip to content

Commit cb09ae6

Browse files
committed
Add b to file
Signed-off-by: Paul Belanger <[email protected]>
1 parent 29e0602 commit cb09ae6

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

playbooks/dco/run.yaml

+21-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
- hosts: all
22
tasks:
3-
- name: chell
4-
shell: git remote -v
5-
args:
6-
chdir: "{{ zuul.project.src_dir }}"
7-
8-
- name: chell
9-
shell: git log origin/master..HEAD
10-
args:
11-
chdir: "{{ zuul.project.src_dir }}"
12-
133
- name: shell
14-
shell: |
15-
for commit in $(git cherry master | cut -d " " -f2)
16-
do
17-
echo $commit
18-
done
19-
args:
4+
shell:
5+
cmd: |
6+
set -e
7+
result=0
8+
for commit in $(git cherry -v origin/{{ zuul.branch }} HEAD | cut -d " " -f2)
9+
do
10+
if ! git show -s $commit | grep -q "Signed-off-by:"; then
11+
echo "Commt $commit does not have a Signed-off-by header"
12+
git show -s $commit
13+
result=1
14+
fi
15+
done
16+
exit $result
2017
chdir: "{{ zuul.project.src_dir }}"
18+
executable: /bin/bash
19+
register: _dco
20+
ignore_errors: True
21+
22+
- name: Validate DCO License
23+
fail:
24+
msg: Something is wrong
25+
when: _dci.rc != 0

test.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
new line
2+
b

0 commit comments

Comments
 (0)