Updated build for stream-applications-release-train.
This commit is contained in:
72
.github/workflows/common.yml
vendored
72
.github/workflows/common.yml
vendored
@@ -480,6 +480,73 @@ jobs:
|
||||
DEFAULT_JDK: ${{ needs.parameters.outputs.jre_version }}
|
||||
MAVEN_THREADS: ${{ inputs.useMavenThreads }}
|
||||
run: ./publish-app.sh "stream-applications" "applications/source/${{ matrix.app }}"
|
||||
release-train:
|
||||
needs:
|
||||
- core
|
||||
- parameters
|
||||
- scale-runners-up
|
||||
runs-on: 'stream-ci'
|
||||
steps:
|
||||
- name: 'Configure: checkout stream-applications'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'main'
|
||||
- name: 'Configure: checkout stream-applications@${{ inputs.branch }}'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
path: 'stream-applications'
|
||||
- name: Ensure scripts are executable
|
||||
shell: bash
|
||||
run: find . -type f -name "*.sh" -exec chmod a+x '{}' \;
|
||||
- name: 'Configure: Install Java'
|
||||
if: ${{ needs.parameters.outputs.jdk_build == '8' }}
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ needs.parameters.outputs.jdk_build }}
|
||||
- name: 'Configure: Install GraalVM'
|
||||
if: ${{ needs.parameters.outputs.jdk_build != '8' }}
|
||||
uses: graalvm/setup-graalvm@v1
|
||||
with:
|
||||
version: 'latest'
|
||||
java-version: ${{ needs.parameters.outputs.jdk_build }}
|
||||
# components: 'native-image' # add when starting native builds.
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: 'Configure: cache for maven dependencies'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-repo-${{ hashFiles('**/pom.xml') }}-8-single-${{ inputs.branch }}
|
||||
restore-keys: |
|
||||
maven-repo-${{ hashFiles('**/pom.xml') }}-8-${{ inputs.branch }}
|
||||
maven-repo-${{ hashFiles('**/pom.xml') }}-${{ inputs.branch }}
|
||||
maven-repo-${{ inputs.branch }}
|
||||
- name: 'Configure: Install Pack'
|
||||
uses: ./.github/actions/install-pack
|
||||
- name: 'Build: stream-applications-release-train'
|
||||
shell: bash
|
||||
env:
|
||||
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
|
||||
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
|
||||
DEFAULT_JDK: ${{ needs.parameters.outputs.jre_version }}
|
||||
MAVEN_THREADS: ${{ inputs.useMavenThreads }}
|
||||
run: |
|
||||
ROOT_DIR=$(realpath $PWD)
|
||||
pushd stream-applications > /dev/null
|
||||
echo "::notice ::building - stream-applications-release-train"
|
||||
set -e
|
||||
$ROOT_DIR/build-folder.sh stream-applications-release-train "install verify deploy"
|
||||
set +e
|
||||
echo "::notice ::stream-applications-release-train build completed"
|
||||
popd > /dev/null
|
||||
- name: 'Upload: Error logs'
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: '${{ matrix.app }}-surefire-reports'
|
||||
path: '**/target/surefire-reports'
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
rerun-jobs:
|
||||
if: ${{ failure() && github.run_attempt == '1' }}
|
||||
runs-on: ubuntu-latest
|
||||
@@ -487,6 +554,7 @@ jobs:
|
||||
- sources
|
||||
- processors
|
||||
- sinks
|
||||
- release-train
|
||||
steps:
|
||||
- name: 'Configure: Checkout stream-applications'
|
||||
uses: actions/checkout@v3
|
||||
@@ -513,9 +581,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- parameters
|
||||
- processors
|
||||
- sinks
|
||||
- sources
|
||||
- release-train
|
||||
concurrency:
|
||||
group: stream-apps-gh-runners
|
||||
cancel-in-progress: false
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
define ceil(x) {
|
||||
auto s, r
|
||||
s = scale
|
||||
scale = 0
|
||||
r = x / 1
|
||||
if(r < x) {
|
||||
r = r + 1
|
||||
}
|
||||
scale = s
|
||||
return (r)
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>stream-applications-release-train</artifactId>
|
||||
<groupId>org.springframework.cloud.stream.app</groupId>
|
||||
@@ -10,7 +11,6 @@
|
||||
<artifactId>stream-applications-descriptor</artifactId>
|
||||
<name>stream-applications-descriptor</name>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
@@ -31,9 +31,18 @@
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmaven</groupId>
|
||||
<artifactId>gmaven-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>3.0.9</version>
|
||||
<type>pom</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>validate</phase>
|
||||
@@ -41,12 +50,16 @@
|
||||
<goal>execute</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<source><![CDATA[
|
||||
pom.properties['repo-spring-io'] =
|
||||
"${apps.version}".contains('SNAPSHOT') ? 'repo.spring.io/snapshot' :
|
||||
<scripts>
|
||||
<script>
|
||||
<![CDATA[
|
||||
def repoSpring = "${apps.version}".contains('SNAPSHOT') ? 'repo.spring.io/snapshot' :
|
||||
"${apps.version}".contains('-') ? 'repo.spring.io/milestone' : 'repo.maven.apache.org/maven2'
|
||||
project.properties.setProperty('repo-spring-io', repoSpring)
|
||||
println('repo-spring-io=$repoSpring')
|
||||
]]>
|
||||
</source>
|
||||
</script>
|
||||
</scripts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
@@ -102,7 +115,6 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user