Skip to content

Commit fa2eb1f

Browse files
committed
fix: When no output path is specified, output to same path as each file
It was previously writing to input base directory if specified or to the work directory of the docker image. Closes #2
1 parent 47f6779 commit fa2eb1f

13 files changed

Lines changed: 552 additions & 7 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.project
2-
*.iml
2+
*.iml
3+
.gradle
4+
build/

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,11 @@ docker run --rm \
3333
```
3434

3535
### vela/CircleCI
36-
Please refer [docs](DOCS.md)
36+
Please refer [docs](DOCS.md)
37+
38+
## Tests
39+
To test the latest plugin image, run the below command
40+
41+
```shell
42+
./gradlew test
43+
```

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
id 'groovy'
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
}
8+
9+
dependencies {
10+
testImplementation group: 'org.spockframework', name: 'spock-core', version: '1.3-groovy-2.5'
11+
}
12+
13+
test {
14+
testLogging {
15+
events 'passed', 'failed'
16+
}
17+
}

entrypoint.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,8 @@ case $INPUT_PATH in
6464
*) INPUT_PATH="$INPUT_PATH/" ;;
6565
esac
6666

67-
# If output path is not specified, use the input path itself
68-
if [ -z "$OUTPUT_PATH" ]; then
69-
OUTPUT_PATH=$INPUT_PATH
70-
else
71-
# If output path does not end with /, append it
67+
# If output path does not end with /, append it
68+
if [ ! -z "$OUTPUT_PATH" ]; then
7269
case $OUTPUT_PATH in
7370
*"/") ;;
7471
*) OUTPUT_PATH="$OUTPUT_PATH/" ;;

gradle/wrapper/gradle-wrapper.jar

53.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)