Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
1.0.10: Added (undocumented) support for 'file[]' input type
Browse files Browse the repository at this point in the history
- Added new expectedInput type, 'file[]'

- Enables devs to specify that (API and UI) clients should supply a
  sequence of 0 or more files. The UI currently renders this as a
  <input type="file" multiple />

- Added a new template expression function, 'toDir'

  - Only accepts a 'file[]'-like input

  - Copies each file in file[] into a single directory in the working
    directory and returns a path to that directory

  - Enables user's scripts to receive all files in file[] as a path that
    their application can search through

- Using a file[] input in a template expression (e.g. '${inputs.someFileArray}'
  automatically coerces the file array such that each file in the array
  is copied into a single directory.

  - This is effectively sugar for '${toDir(inputs.someFileArray)}'

  - This, along with 'toDir' is one of the few ways to use the file[]
    input type at the moment.

- This feature is currently undocumented due to time constraints and
  missing/buggy features (job copying + defaults do not work with file[],
  for example)
  • Loading branch information
adamkewley committed Jul 5, 2020
2 parents e40686c + 75bdaae commit 6531b63
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Requires java (8+):
```bash
# install and add to PATH
wget https://github.com/adamkewley/jobson/releases/download/1.0.9/jobson-nix-1.0.9.tar.gz
tar xvf jobson-nix-1.0.9.tar.gz
export PATH=$PATH:jobson-nix-1.0.9/bin
wget https://github.com/adamkewley/jobson/releases/download/1.0.10/jobson-nix-1.0.10.tar.gz
tar xvf jobson-nix-1.0.10.tar.gz
export PATH=$PATH:jobson-nix-1.0.10/bin

# create demo workspace
jobson new --demo
Expand Down
4 changes: 2 additions & 2 deletions jobson-deb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-deb</artifactId>
Expand All @@ -17,7 +17,7 @@
<dependency>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-nix</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<type>tar.gz</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions jobson-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-docker</artifactId>
Expand All @@ -17,7 +17,7 @@
<dependency>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-deb</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<type>deb</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions jobson-docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-docs</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>pom</packaging>

<dependencies>
Expand Down
8 changes: 4 additions & 4 deletions jobson-nix/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-nix</artifactId>
Expand All @@ -17,18 +17,18 @@
<dependency>
<groupId>com.github.jobson</groupId>
<artifactId>jobson</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</dependency>
<dependency>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-docs</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<type>tar.gz</type>
</dependency>
<dependency>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-ui</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<type>tar.gz</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions jobson-swagger-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-swagger-ui</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>pom</packaging>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions jobson-swagger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-swagger</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>com.github.jobson</groupId>
<artifactId>jobson</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml</groupId>
Expand Down
4 changes: 2 additions & 2 deletions jobson-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson-ui</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>pom</packaging>

<build>
Expand Down
4 changes: 2 additions & 2 deletions jobson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</parent>

<artifactId>jobson</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>jar</packaging>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.jobson</groupId>
<artifactId>jobson-project</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>pom</packaging>

<name>jobson project</name>
Expand Down Expand Up @@ -48,8 +48,8 @@
</developers>

<properties>
<version.jobsonswagger>1.0.9</version.jobsonswagger>
<version.jobsonswaggerui>1.0.9</version.jobsonswaggerui>
<version.jobsonswagger>1.0.10</version.jobsonswagger>
<version.jobsonswaggerui>1.0.10</version.jobsonswaggerui>

<dropwizard.version>1.3.16</dropwizard.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit 6531b63

Please sign in to comment.