mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-23 06:05:48 +08:00

This commit fixes the missing pieces in our Maven Central publication pipeline. Our first attempt at releasing with it showed a few problems: * The promote task did not have the artifacts downloaded with the artifactory repository. * We applied the wrong Sonatype credentials to the task. * The github changelog task would fail because of docker rate limiting since we were not using the right type of resource, which is configured with the proper caching mechanism. See gh-1199
28 lines
1.1 KiB
Bash
Executable File
28 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
###########################################################
|
|
# UTILS
|
|
###########################################################
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update
|
|
apt-get install --no-install-recommends -y tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq unzip
|
|
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
|
|
dpkg-reconfigure --frontend noninteractive tzdata
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh
|
|
|
|
curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.1/concourse-release-scripts-0.3.1.jar
|
|
|
|
###########################################################
|
|
# JAVA
|
|
###########################################################
|
|
JDK_URL=$( ./get-jdk-url.sh $1 )
|
|
|
|
mkdir -p /opt/openjdk
|
|
cd /opt/openjdk
|
|
curl -L ${JDK_URL} | tar zx --strip-components=1
|
|
test -f /opt/openjdk/bin/java
|
|
test -f /opt/openjdk/bin/javac |