-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jmfrancois/chore/update-webapps-dependencies
# Conflicts: # component-tools-webapp/src/main/frontend/package-lock.json # component-tools-webapp/src/main/frontend/package-template.json # pom.xml
- Loading branch information
Showing
2,198 changed files
with
62,731 additions
and
28,364 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,7 @@ documentation/rebuildpdf.bat | |
|
||
# release process | ||
.build/ | ||
.build_source/ | ||
.build_source/ | ||
# direnv | ||
.envrc | ||
.env |
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,33 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
imagePullSecrets: | ||
- name: talend-registry | ||
containers: | ||
- name: main | ||
# 3.0.9-20220930152032 is the last root version of custom-builder | ||
image: 'artifactory.datapwn.com/tlnd-docker-dev/talend/common/tsbi/custom-builder:3.0.9-20220930152032' | ||
command: [ cat ] | ||
tty: true | ||
volumeMounts: [ | ||
{ name: efs-jenkins-component-runtime-m2, mountPath: /root/.m2/repository}, | ||
{ name: efs-jenkins-connectors-asdf, mountPath: /root/.asdf/installs, subPath: installs } | ||
] | ||
resources: {requests: {memory: 6G, cpu: '4.0'}, limits: {memory: 8G, cpu: '5.0'}} | ||
env: | ||
- name: DOCKER_HOST | ||
value: tcp://localhost:2375 | ||
- name: docker-daemon | ||
image: artifactory.datapwn.com/docker-io-remote/docker:19.03.1-dind | ||
env: | ||
- name: DOCKER_TLS_CERTDIR | ||
value: "" | ||
securityContext: | ||
privileged: true | ||
volumes: | ||
- name: efs-jenkins-component-runtime-m2 | ||
persistentVolumeClaim: | ||
claimName: efs-jenkins-component-runtime-m2 | ||
- name: efs-jenkins-connectors-asdf | ||
persistentVolumeClaim: | ||
claimName: efs-jenkins-connectors-asdf |
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
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
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,42 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (C) 2006-2023 Talend Inc. - www.talend.com | ||
# | ||
# Licensed 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. | ||
# | ||
|
||
set -xe | ||
|
||
# Execute sonar analysis | ||
# $1: Sonar analyzed branch | ||
# $@: the extra parameters to be used in the maven commands | ||
main() ( | ||
branch="${1?Missing branch name}"; shift | ||
extraBuildParams=("$@") | ||
|
||
declare -a LIST_FILE_ARRAY=( $(find $(pwd) -type f -name 'jacoco.xml') ) | ||
LIST_FILE=$(IFS=, ; echo "${LIST_FILE_ARRAY[*]}") | ||
|
||
# Why sonar plugin is not declared in pom.xml: https://blog.sonarsource.com/we-had-a-dream-mvn-sonarsonar | ||
# TODO https://jira.talendforge.org/browse/TDI-48980 (CI: Reactivate Sonar cache) | ||
mvn sonar:sonar \ | ||
--define 'sonar.host.url=https://sonar-eks.datapwn.com' \ | ||
--define "sonar.login=${SONAR_LOGIN}" \ | ||
--define "sonar.password=${SONAR_PASSWORD}" \ | ||
--define "sonar.branch.name=${branch}" \ | ||
--define "sonar.coverage.jacoco.xmlReportPaths='${LIST_FILE}'" \ | ||
--define "sonar.analysisCache.enabled=false" \ | ||
"${extraBuildParams[@]}" | ||
) | ||
|
||
main "$@" |
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,53 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (C) 2006-2023 Talend Inc. - www.talend.com | ||
# | ||
# Licensed 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. | ||
# | ||
|
||
set -xe | ||
|
||
# Execute sonar analysis | ||
# $1: Sonar analyzed branch | ||
# $2: Sonar target branch for compare | ||
# $3: PR id | ||
# $@: the extra parameters to be used in the maven commands | ||
main() ( | ||
branch="${1?Missing branch name}"; shift | ||
target_branch="${1?Missing target branch name}"; shift | ||
pull_request_id="${1?Missing pull request id}"; shift | ||
extraBuildParams=("$@") | ||
|
||
declare -a LIST_FILE_ARRAY=( $(find $(pwd) -type f -name 'jacoco.xml') ) | ||
LIST_FILE=$(IFS=, ; echo "${LIST_FILE_ARRAY[*]}") | ||
|
||
# Fetch target branch for Sonar diff purpose | ||
git fetch origin "${target_branch}":"${target_branch}" | ||
|
||
# Why sonar plugin is not declared in pom.xml: https://blog.sonarsource.com/we-had-a-dream-mvn-sonarsonar | ||
# TODO https://jira.talendforge.org/browse/TDI-48980 (CI: Reactivate Sonar cache) | ||
mvn sonar:sonar \ | ||
--define 'sonar.host.url=https://sonar-eks.datapwn.com' \ | ||
--define "sonar.login=${SONAR_LOGIN}" \ | ||
--define "sonar.password=${SONAR_PASSWORD}" \ | ||
--define "sonar.coverage.jacoco.xmlReportPaths='${LIST_FILE}'" \ | ||
--define "sonar.analysisCache.enabled=false" \ | ||
--define "sonar.pullrequest.branch=${branch}" \ | ||
--define "sonar.pullrequest.base=${target_branch}" \ | ||
--define "sonar.pullrequest.key=${pull_request_id}" \ | ||
"${extraBuildParams[@]}" | ||
|
||
|
||
) | ||
|
||
main "$@" |
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,33 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (C) 2006-2023 Talend Inc. - www.talend.com | ||
# | ||
# Licensed 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. | ||
# | ||
|
||
set -xe | ||
# | ||
# Correct npm behavior https://docs.npmjs.com/cli/v7/using-npm/scripts#user | ||
# > When npm is run as root, scripts are always run with the effective uid and gid of the working directory owner. | ||
# | ||
# As build is run under root, target folder is created and owned by root. | ||
# But, as specified above, the npm process takes the uid/guid of cwd ie as talend (1000), so when generating | ||
# documentation via antora the process fails w/ : | ||
# FATAL (antora): EACCES: permission denied, mkdir '.../documentation/target/documentation-1.43.0-SNAPSHOT/main' | ||
# | ||
# TODO: check for other modules using npm | ||
# - component-tools | ||
# - component-tools-webapp | ||
# - component-starter-server | ||
# | ||
chown -R $(id -u):$(id -g) documentation |
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,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (C) 2006-2023 Talend Inc. - www.talend.com | ||
# | ||
# Licensed 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. | ||
# | ||
|
||
set -xe | ||
|
||
# This script allow to package the current project with maven on specific jenkins provided settings.xml | ||
# You can provide extra parameters to tune maven | ||
# $1: extra_mvn_parameters | ||
main() { | ||
_EXTRA_MVN_PARAMETERS=("$@") | ||
|
||
mvn package --batch-mode --settings .jenkins/settings.xml ${_EXTRA_MVN_PARAMETERS[*]} | ||
} | ||
|
||
main "$@" |
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.