forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kie-issues#1059-EPIC-Sonataflow-management-console' int…
…o kie-issues#1060-Create-Sonataflow-management-console-webapp
- Loading branch information
Showing
3,688 changed files
with
287,107 additions
and
63,881 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM cruizba/ubuntu-dind:latest | ||
FROM cruizba/ubuntu-dind:noble-26.1.3 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
|
@@ -23,7 +23,6 @@ libgtk-3-dev \ | |
libssl-dev \ | ||
libxi6 \ | ||
libnss3 \ | ||
libgconf-2-4 \ | ||
libpci-dev \ | ||
libglvnd0 \ | ||
libbtrfs-dev \ | ||
|
@@ -34,6 +33,7 @@ python3-pip \ | |
python3-dev \ | ||
python3-venv \ | ||
python3-gssapi \ | ||
gettext \ | ||
git \ | ||
jq \ | ||
vim \ | ||
|
@@ -42,7 +42,8 @@ zip \ | |
unzip \ | ||
bzip2 \ | ||
xvfb \ | ||
fluxbox && \ | ||
fluxbox \ | ||
subversion && \ | ||
apt-get clean autoclean && apt-get autoremove --yes && \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
|
||
|
@@ -78,13 +79,13 @@ RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | | |
|
||
# Node setup | ||
RUN source $HOME/.nvm/nvm.sh && \ | ||
nvm install 18.14.0 && \ | ||
nvm install 20.14.0 && \ | ||
sudo update-alternatives --install /usr/local/bin/node node $(which node) 1 && \ | ||
sudo update-alternatives --install /usr/local/bin/npm npm $(which npm) 1 | ||
|
||
# PNPM setup | ||
RUN source $HOME/.nvm/nvm.sh && \ | ||
npm install -g pnpm@8.7.0 && \ | ||
npm install -g pnpm@9.3.0 && \ | ||
sudo update-alternatives --install /usr/local/bin/pnpm pnpm $(which pnpm) 1 | ||
|
||
# Maven setup | ||
|
@@ -97,8 +98,8 @@ RUN curl -s "https://get.sdkman.io" | bash && \ | |
sdk flush | ||
|
||
# Golang setup | ||
RUN wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz -P /tmp && \ | ||
sudo tar xzf /tmp/go1.21.5.linux-amd64.tar.gz -C /opt && rm /tmp/go1.21.5.linux-amd64.tar.gz && \ | ||
RUN wget https://go.dev/dl/go1.21.9.linux-amd64.tar.gz -P /tmp && \ | ||
sudo tar xzf /tmp/go1.21.9.linux-amd64.tar.gz -C /opt && rm /tmp/go1.21.9.linux-amd64.tar.gz && \ | ||
echo 'export GOPATH=${HOME}/go' | sudo tee /etc/profile.d/go.sh && \ | ||
echo 'export PATH=${PATH}:/opt/go/bin:${GOPATH}/bin' | sudo tee -a /etc/profile.d/go.sh && \ | ||
echo "source /etc/profile.d/go.sh" >> $HOME/.bashrc && \ | ||
|
@@ -130,7 +131,7 @@ RUN go install github.com/openshift/source-to-image/cmd/[email protected] | |
ENV HOME="/home/nonrootuser" | ||
ENV JAVA_HOME="${HOME}/.sdkman/candidates/java/current/" | ||
ENV MAVEN_HOME="${HOME}/.sdkman/candidates/maven/current/" | ||
ENV NODE_HOME="${HOME}/.nvm/versions/node/v18.14.0" | ||
ENV NODE_HOME="${HOME}/.nvm/versions/node/v20.14.0" | ||
ENV DISPLAY=":99" | ||
ENV NODE_OPTIONS="--max_old_space_size=4096" | ||
ENV GOPATH="${HOME}/go" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@Library('jenkins-pipeline-shared-libraries')_ | ||
|
||
pipeline { | ||
agent { | ||
docker { | ||
image 'docker.io/apache/incubator-kie-tools-ci-build:main' | ||
args '--shm-size=2g --privileged --group-add docker' | ||
label util.avoidFaultyNodes() | ||
} | ||
} | ||
|
||
options { | ||
timeout(time: 180, unit: 'MINUTES') | ||
} | ||
|
||
parameters { | ||
string(name: 'BRANCH_NAME', description: 'Set the Git branch to checkout (0.0.X)', trim: true) | ||
string(name: 'RELEASE_VERSION', description: 'Release version', trim: true) | ||
string(name: 'TAG_NAME', description: 'Tag name to be created', trim: true) | ||
} | ||
|
||
stages { | ||
stage('Load local shared scripts') { | ||
steps { | ||
script { | ||
pipelineVars = load '.ci/jenkins/shared-scripts/pipelineVars.groovy' | ||
buildUtils = load '.ci/jenkins/shared-scripts/buildUtils.groovy' | ||
githubUtils = load '.ci/jenkins/shared-scripts/githubUtils.groovy' | ||
} | ||
} | ||
} | ||
|
||
stage('Clean workspace before build') { | ||
steps { | ||
cleanWs(deleteDirs: true, disableDeferredWipeout: true) | ||
} | ||
} | ||
|
||
stage('Checkout kie-tools') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
githubUtils.checkoutRepo( | ||
"http://github.com/${pipelineVars.githubRepositorySlug}.git", | ||
"${params.BRANCH_NAME}", | ||
"${pipelineVars.kieToolsBotGithubCredentialsId}" | ||
) | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Setup PNPM') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
buildUtils.setupPnpm() | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('PNPM Bootstrap') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
buildUtils.pnpmBootstrap("${env.PNPM_FILTER_STRING}") | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Setup Git repository') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
sh """#!/bin/bash -el | ||
git config user.email [email protected] | ||
git config user.name asf-ci-kie | ||
git checkout ${params.BRANCH_NAME} | ||
""".trim() | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Update project version') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
buildUtils.pnpmUpdateProjectVersion(params.RELEASE_VERSION) | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Update kogito version') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
buildUtils.pnpmUpdateKogitoVersion(params.RELEASE_VERSION, params.RELEASE_VERSION) | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Update stream name') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
buildUtils.pnpmUpdateStreamName(params.RELEASE_VERSION) | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Commit and Push changes') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
sh """#!/bin/bash -el | ||
git add . | ||
git commit --allow-empty -am "Apache KIE ${params.RELEASE_VERSION} release" | ||
""".trim() | ||
githubUtils.pushObject('origin', "${params.NEW_BRANCH_NAME}", "${pipelineVars.asfGithubPushCredentialsId}") | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Check `release version` against `package.json.version`') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
packageVersion = sh(returnStdout: true, script: "#!/bin/bash -el \n node -p \"require('./package.json').version\"").trim() | ||
sh """#!/bin/bash -el | ||
[[ "${params.RELEASE_VERSION}" == "${packageVersion}" ]] | ||
""".trim() | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Create a new tag') { | ||
steps { | ||
dir('kie-tools') { | ||
script { | ||
githubUtils.createTag("${params.TAG_NAME}") | ||
githubUtils.pushObject('origin', "${params.TAG_NAME}", "${pipelineVars.asfGithubPushCredentialsId}") | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Build and Publish release candidate artifacts') { | ||
steps { | ||
build job: 'KIE/kie-tools/kie-tools-release-build', parameters: [ | ||
booleanParam(name: 'DRY_RUN', value: false), | ||
string(name: 'BASE_REF', value: "${env.BRANCH_NAME}"), | ||
string(name: 'RELEASE_VERSION', value: "${params.RELEASE_VERSION}"), | ||
string(name: 'UPLOAD_ASSET_URL', value: "${env.RELEASE_UPLOAD_ASSET_URL}"), | ||
string(name: 'RUNNERS', value: "${params.RUNNERS}"), | ||
booleanParam(name: 'RELEASE_CANDIDATE', value: true), | ||
string(name: 'RELEASE_CANDIDATE_VERSION', value: "${TAG_NAME}") | ||
] | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
cleanWs(deleteDirs: true) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.