Skip to content

Commit 3086811

Browse files
author
Vishal.Vaibhav
committed
add a new Apache license + move to kaniko plugin
1 parent 7a856e8 commit 3086811

3 files changed

Lines changed: 18 additions & 24 deletions

File tree

.vela.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ steps:
6969
- pull_request
7070

7171
- name: docker-pull-request
72-
image: docker.target.com/vela-plugins/docker:v0.2.3-1
72+
image: docker.target.com/vela-plugins/kaniko:v0.5.0-1
7373
ruleset:
7474
event:
7575
- pull_request
@@ -86,7 +86,7 @@ steps:
8686

8787

8888
- name: docker-push
89-
image: docker.target.com/vela-plugins/docker:v0.2.3-1
89+
image: docker.target.com/vela-plugins/kaniko:v0.5.0-1
9090
ruleset:
9191
branch:
9292
- master

LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Apache License
2+
3+
Copyright (C) 2021 Target Brands, Inc.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![Build Status](https://vela-server.prod.target.com/badge/TargetOSS/pull-request-code-coverage/status.svg)](https://vela.prod.target.com/TargetOSS/pull-request-code-coverage)
55

6-
Drone plugin to allow detecting code coverage for only the lines changed in a PR.
6+
Vela plugin to allow detecting code coverage for only the lines changed in a PR.
77

88
Sometimes when working to get a repo to an acceptable level of code coverage, it can be hard to tell if one change is
99
covered enough. This plugin will look at just the lines changed in the PR and report code coverage for only those
@@ -35,27 +35,6 @@ PR with a summary of the coverage details.
3535
target: plugin_gh_api_key
3636
```
3737
38-
## DRONE Usage
39-
40-
```yaml
41-
check-pr-code-coverage:
42-
when:
43-
event: [pull_request]
44-
image: docker.target.com/app/pull-request-code-coverage
45-
pull: true
46-
coverage_type: jacoco
47-
coverage_file: some-sub-module/build/reports/jacoco/test/jacocoTestReport.xml
48-
source_dirs:
49-
- src/main/java
50-
- src/main/kotlin
51-
gh_api_base_url: https://git.target.com
52-
module: some-sub-module
53-
secrets:
54-
- source: pull_request_api_key
55-
target: plugin_gh_api_key
56-
```
57-
58-
5938
6039
#### Parameters
6140

0 commit comments

Comments
 (0)