Try to fake optional task input

This commit is contained in:
Kris De Volder
2018-02-21 16:49:33 -08:00
parent d3df88e961
commit 2210fe6461
4 changed files with 15 additions and 4 deletions

View File

@@ -563,6 +563,8 @@ jobs:
trigger: true
passed:
- build-boot-java-atom-package
- task: no-fatjar
file: sts4/concourse/tasks/no-fatjar.yml
- task: build-atom-package
params:
package_name: atom-boot-java

View File

@@ -6,7 +6,7 @@ output=$workdir/out
#atom_commons=$workdir/sts4/atom-extensions/atom-commons
atom_package=$workdir/sts4/atom-extensions/$package_name
if [ -e $fatjar ]; then
if [ -e $fatjar/version ]; then
url=`cat fatjar/url`
fatjar_version=`cat fatjar/version`
fi
@@ -20,7 +20,7 @@ cd $atom_package
timestamp=`date -u +%Y%m%d%H%M`
if [ -e $fatjar ]; then
if [ -e $fatjar/version ]; then
cat > properties.json << EOF
{
"jarUrl": "${url}"
@@ -56,7 +56,7 @@ git config user.name "Alex Boyko"
git add .
if [ -e $fatjar ]; then
if [ -e $fatjar/version ]; then
git commit \
-m "Publish $fatjar_version"
else

View File

@@ -2,7 +2,6 @@ inputs:
- name: sts4
- name: release_repo
- name: fatjar
optional: true
params:
package_name: atom-bosh
outputs:

View File

@@ -0,0 +1,10 @@
platform: linux
image_resource:
type: docker-image
source:
repository: kdvolder/sts4-build-env
outputs:
- name: fatjar
run:
path: echo
args: [ "Faking it there is no fatjar" ]