Add task to unpack tar.gz file

This commit is contained in:
Kris De Volder
2019-05-01 13:51:45 -07:00
parent 744ffe074e
commit 054bf6db05
3 changed files with 31 additions and 5 deletions

View File

@@ -1302,16 +1302,23 @@ jobs:
acl: public-read
- name: publish-headless-snapshots
plan:
- get: s3-headless-maven-out
passed:
- build-fatjars
- aggregate:
- get: s3-headless-maven-out
passed:
- build-fatjars
- get: sts4
- task: unpack
file: sts4/concourse/tasks/unpack.yml
input_mapping:
in: s3-headless-maven-out
- put: artifactory
params:
debug: true
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_ID}"
repo: libs-snapshot-local
folder: s3-headless-maven-out
exclude: "**/_remote.repositories"
folder: out
exclude:
- "**/_remote.repositories"
- name: build-manifest-yaml-atom-package
serial: true
plan:

View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
workdir=$(pwd)
in=${workdir}/in
out=${workdir}/out
cd $out
tar xvf ${in}/*.tar.gz

View File

@@ -0,0 +1,12 @@
platform: linux
image_resource:
type: docker-image
source:
repository: kdvolder/sts4-build-env
run:
path: sts4/concourse/tasks/unpack.sh
inputs:
- name: sts4
- name: in
outputs:
- name: out