Skip to content

Commit

Permalink
Merge branch 'kie-issues#1059-EPIC-Sonataflow-management-console' int…
Browse files Browse the repository at this point in the history
…o kie-issues#1060-Create-Sonataflow-management-console-webapp
  • Loading branch information
fantonangeli committed Jun 12, 2024
2 parents 2a02cf5 + 2aa58e2 commit ca4258d
Show file tree
Hide file tree
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.
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"]

Expand All @@ -23,7 +23,6 @@ libgtk-3-dev \
libssl-dev \
libxi6 \
libnss3 \
libgconf-2-4 \
libpci-dev \
libglvnd0 \
libbtrfs-dev \
Expand All @@ -34,6 +33,7 @@ python3-pip \
python3-dev \
python3-venv \
python3-gssapi \
gettext \
git \
jq \
vim \
Expand All @@ -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}/

Expand Down Expand Up @@ -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
Expand All @@ -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 && \
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.ci-main
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pipeline {
"${pipelineVars.kieToolsBotGithubCredentialsId}"
)

BUILD_IMAGE_REQUIRED = githubUtils.fileIsInChangeset('kie-tools-ci-build.Dockerfile')
BUILD_IMAGE_REQUIRED = githubUtils.fileIsInChangeset('incubator-kie-tools-ci-build.Dockerfile')
}
}
}
Expand Down
307 changes: 190 additions & 117 deletions .ci/jenkins/Jenkinsfile.daily-dev-publish

Large diffs are not rendered by default.

1,067 changes: 616 additions & 451 deletions .ci/jenkins/Jenkinsfile.release-build

Large diffs are not rendered by default.

192 changes: 192 additions & 0 deletions .ci/jenkins/Jenkinsfile.release-candidate
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)
}
}
}
4 changes: 2 additions & 2 deletions .ci/jenkins/Jenkinsfile.release-dry-run
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
label util.avoidFaultyNodes()
}
}
Expand All @@ -35,7 +35,7 @@ pipeline {
build job: 'KIE/kie-tools/kie-tools-release-build', parameters: [
booleanParam(name: 'DRY_RUN', value: true),
string(name: 'BASE_REF', value: 'main'),
string(name: 'RUNNERS', value: '{"dev_deployment_base_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_upload_service":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true","kie_sandbox_helm_chart":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true"}')
string(name: 'RUNNERS', value: '{"dev_deployment_base_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_upload_service":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true","kie_sandbox_helm_chart":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true","kogito_serverless_operator":"true","jbpm_quarkus_devui":"false","sonataflow_quarkus_devui":"false"}')
]
}
}
Expand Down
6 changes: 3 additions & 3 deletions .ci/jenkins/Jenkinsfile.release-publish
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
label util.avoidFaultyNodes()
}
}
Expand All @@ -30,8 +30,8 @@ pipeline {
}

parameters {
string(description: 'Tag', name: 'TAG', defaultValue: '0.0.0')
string(description: 'Runners', name: 'RUNNERS', defaultValue: '{"dev_deployment_base_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_upload_service":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true","kie_sandbox_helm_chart":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true"}')
string(description: 'Release Version', name: 'RELEASE_VERSION', defaultValue: '0.0.0')
string(description: 'Runners', name: 'RUNNERS', defaultValue: '{"dev_deployment_base_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_upload_service":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true","kie_sandbox_helm_chart":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_serverless_operator":"true","jbpm_quarkus_devui":"true","sonataflow_quarkus_devui":"true"}')
}

stages {
Expand Down
Loading

0 comments on commit ca4258d

Please sign in to comment.