Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into autolayout-dmn-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Jan 30, 2024
2 parents 30d77bc + 41814a9 commit 1df21d8
Show file tree
Hide file tree
Showing 371 changed files with 27,780 additions and 1,152 deletions.
12 changes: 0 additions & 12 deletions .ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-base-image
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@ pipeline {
DEV_DEPLOYMENT_BASE_IMAGE__account = 'kie-tools'
DEV_DEPLOYMENT_BASE_IMAGE__name = 'dev-deployment-base-image'
DEV_DEPLOYMENT_BASE_IMAGE__buildTags = "latest ${params.TAG}"
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__registry = 'quay.io'
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__account = 'kie-tools'
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__name = 'dev-deployment-dmn-form-webapp-image'
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__buildTags = "latest ${params.TAG}"
ONLINE_EDITOR__devDeploymentBaseImageRegistry = 'quay.io'
ONLINE_EDITOR__devDeploymentBaseImageAccount = 'kie-tools'
ONLINE_EDITOR__devDeploymentBaseImageName = 'dev-deployment-base-image'
ONLINE_EDITOR__devDeploymentBaseImageTag = "${params.TAG}"
ONLINE_EDITOR__devDeploymentDmnFormWebappImageRegistry = 'quay.io'
ONLINE_EDITOR__devDeploymentDmnFormWebappImageAccount = 'kie-tools'
ONLINE_EDITOR__devDeploymentDmnFormWebappImageName = 'dev-deployment-dmn-form-webapp-image'
ONLINE_EDITOR__devDeploymentDmnFormWebappImageTag = "${params.TAG}"

DOCKER_CONFIG = "${WORKSPACE}/.docker"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,10 @@ pipeline {
KIE_TOOLS_BUILD__runEndToEndTests = 'false'
KIE_TOOLS_BUILD__buildContainerImages = 'true'

DEV_DEPLOYMENT_BASE_IMAGE__registry = 'quay.io'
DEV_DEPLOYMENT_BASE_IMAGE__account = 'kie-tools'
DEV_DEPLOYMENT_BASE_IMAGE__name = 'dev-deployment-base-image'
DEV_DEPLOYMENT_BASE_IMAGE__buildTags = "latest ${params.TAG}"
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__registry = 'quay.io'
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__account = 'kie-tools'
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__name = 'dev-deployment-dmn-form-webapp-image'
DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__buildTags = "latest ${params.TAG}"
ONLINE_EDITOR__devDeploymentBaseImageRegistry = 'quay.io'
ONLINE_EDITOR__devDeploymentBaseImageAccount = 'kie-tools'
ONLINE_EDITOR__devDeploymentBaseImageName = 'dev-deployment-base-image'
ONLINE_EDITOR__devDeploymentBaseImageTag = "${params.TAG}"
ONLINE_EDITOR__devDeploymentDmnFormWebappImageRegistry = 'quay.io'
ONLINE_EDITOR__devDeploymentDmnFormWebappImageAccount = 'kie-tools'
ONLINE_EDITOR__devDeploymentDmnFormWebappImageName = 'dev-deployment-dmn-form-webapp-image'
ONLINE_EDITOR__devDeploymentDmnFormWebappImageTag = "${params.TAG}"

DOCKER_CONFIG = "${WORKSPACE}/.docker"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/*
* 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.
*/
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
args '--shm-size=2g --privileged --group-add docker'
}
}

options {
timeout(time: 60, unit: 'MINUTES')
}

parameters {
booleanParam(description: 'Dry run', name: 'DRY_RUN', defaultValue: true)
string(description: 'Tag', name: 'TAG', defaultValue: '0.0.0')
string(description: 'Base Ref', name: 'BASE_REF')
}

environment {
KIE_TOOLS_BUILD__runLinters = 'false'
KIE_TOOLS_BUILD__runTests = 'false'
KIE_TOOLS_BUILD__runEndToEndTests = 'false'
KIE_TOOLS_BUILD__buildContainerImages = 'true'

DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__registry = 'quay.io'
DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__account = 'kie-tools'
DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__name = 'dev-deployment-base-image'
DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__buildTags = "latest ${params.TAG}"

DOCKER_CONFIG = "${WORKSPACE}/.docker"

PNPM_FILTER_STRING = '-F @kie-tools/dev-deployment-kogito-quarkus-blank-app-image...'
}

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'
dockerUtils = load '.ci/jenkins/shared-scripts/dockerUtils.groovy'
}
}
}

stage('Start required services for build and tests (DinD, Xvfb, Fluxbox)') {
steps {
script {
buildUtils.startRequiredServices()
}
}
}

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.BASE_REF}",
"${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('Build') {
steps {
dir('kie-tools') {
script {
buildUtils.pnpmBuild("${env.PNPM_FILTER_STRING}")
}
}
}
}

stage('Push dev-deployment-kogito-quarkus-blank-app-image to quay.io') {
when {
expression { !params.DRY_RUN }
}
steps {
script {
dockerUtils.pushImageToRegistry(
"${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__registry}/${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__account}",
"${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__name}",
"${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__buildTags}",
"${pipelineVars.quayPushCredentialsId}"
)
}
}
}

}

post {
always {
cleanWs(deleteDirs: true)
}
}
}
190 changes: 190 additions & 0 deletions .ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-upload-service
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
/*
* 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.
*/
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
args '--shm-size=2g --privileged --group-add docker'
}
}

options {
timeout(time: 60, unit: 'MINUTES')
}

parameters {
booleanParam(description: 'Dry run', name: 'DRY_RUN', defaultValue: true)
string(description: 'Tag', name: 'TAG', defaultValue: '0.0.0')
string(description: 'Base Ref', name: 'BASE_REF')
string(description: 'Upload Asset Url', name: 'UPLOAD_ASSET_URL')
}

environment {
KIE_TOOLS_BUILD__runLinters = 'false'
KIE_TOOLS_BUILD__runTests = 'false'
KIE_TOOLS_BUILD__runEndToEndTests = 'false'
KIE_TOOLS_BUILD__buildContainerImages = 'true'

PNPM_FILTER_STRING = '-F @kie-tools/dev-deployment-upload-service...'
}

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('Start required services for build and tests (DinD, Xvfb, Fluxbox)') {
steps {
script {
buildUtils.startRequiredServices()
}
}
}

stage('Clean workspace before build') {
steps {
cleanWs(deleteDirs: true, disableDeferredWipeout: true)
}
}

stage('Checkout kie-tools') {
steps {
script {
githubUtils.checkoutRepo(
"http://github.com/${pipelineVars.githubRepositorySlug}.git",
"${params.BASE_REF}",
"${pipelineVars.kieToolsBotGithubCredentialsId}"
)
}
}
}

stage('Setup PNPM') {
steps {
script {
buildUtils.setupPnpm()
}
}
}

stage('PNPM Bootstrap') {
steps {
dir('kie-tools') {
script {
buildUtils.pnpmBootstrap("${env.PNPM_FILTER_STRING}")
}
}
}
}

stage('Build') {
steps {
dir('kie-tools') {
script {
buildUtils.pnpmBuild("${env.PNPM_FILTER_STRING}")
}
}
}
}

stage('Upload Dev Deployment Upload Service assets') {
when {
expression { !params.DRY_RUN }
}
steps {
script {
// macOS - amd64 - tar.gz
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-darwin-amd64-${params.TAG}.tar.gz",
"dev-deployment-upload-service-darwin-amd64-${params.TAG}.tar.gz",
'application/tar+gzip',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// macOS - amd64 - tar.gz.sha256
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-darwin-amd64-${params.TAG}.tar.gz.sha256",
"dev-deployment-upload-service-darwin-amd64-${params.TAG}.tar.gz.sha256",
'text/plain',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// macOS - arm64 - tar.gz
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-darwin-arm64-${params.TAG}.tar.gz",
"dev-deployment-upload-service-darwin-arm64-${params.TAG}.tar.gz",
'application/tar+gzip',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// macOS - arm64 - tar.gz.sha256
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-darwin-arm64-${params.TAG}.tar.gz.sha256",
"dev-deployment-upload-service-darwin-arm64-${params.TAG}.tar.gz.sha256",
'text/plain',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// linux - amd64 - tar.gz
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-linux-amd64-${params.TAG}.tar.gz",
"dev-deployment-upload-service-linux-amd64-${params.TAG}.tar.gz",
'application/tar+gzip',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// linux - amd64 - tar.gz.sha256
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-linux-amd64-${params.TAG}.tar.gz.sha256",
"dev-deployment-upload-service-linux-amd64-${params.TAG}.tar.gz.sha256",
'text/plain',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// windows - amd64 - tar.gz
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-windows-amd64-${params.TAG}.tar.gz",
"dev-deployment-upload-service-windows-amd64-${params.TAG}.tar.gz",
'application/tar+gzip',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
// windows - amd64 - tar.gz.sha256
githubUtils.uploadReleaseAsset(
"${params.UPLOAD_ASSET_URL}",
"packages/dev-deployment-upload-service/dist/dev-deployment-upload-service-windows-amd64-${params.TAG}.tar.gz.sha256",
"dev-deployment-upload-service-windows-amd64-${params.TAG}.tar.gz.sha256",
'text/plain',
"${pipelineVars.kieToolsBotGithubTokenCredentialsId}"
)
}
}
}
}

post {
always {
cleanWs(deleteDirs: true)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{
"run_at": "document_idle",
"js": ["content_scripts/github.js"],
"matches": ["https://*.github.com/*"],
"all_frames": true
"matches": ["https://*/*", "http://*/*"],
"all_frames": false
}
],
"icons": { "16": "resources/icon_16.png", "48": "resources/icon_48.png", "128": "resources/icon_128.png" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{
"run_at": "document_idle",
"js": ["content_scripts/github.js"],
"matches": ["https://*.github.com/*"],
"all_frames": true
"matches": ["https://*/*", "http://*/*"],
"all_frames": false
}
],
"icons": { "16": "resources/icon_16.png", "48": "resources/icon_48.png", "128": "resources/icon_128.png" },
Expand Down
Loading

0 comments on commit 1df21d8

Please sign in to comment.