Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Strip existing version pre-release data for dev release
Browse files Browse the repository at this point in the history
  • Loading branch information
dpb587 committed Apr 10, 2018
1 parent 32159bd commit 0f8966c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/tasks/create-dev-release/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ s3_bucket=$( bosh interpolate --path /blobstore/options/bucket_name repo/config/
s3_prefix="${s3_prefix:-}"

if [ -f version/number ]; then
version=$( cat version/number )-dev.$( date -u +%Y%m%dT%H%M%SZ )
version=$( sed -E 's/\-.+//' version/number )-dev.$( date -u +%Y%m%dT%H%M%SZ )
else
version=$( cd repo ; bosh create-release --force --timestamp-version --tty | grep '^Version ' | awk '{ print $2 }' ; rm -fr dev_releases )
fi
Expand Down

0 comments on commit 0f8966c

Please sign in to comment.