Skip to content

Commit

Permalink
Merge branch 'eclipse:master' into issue-1769
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivangMishra authored Jul 19, 2023
2 parents 5849410 + 8078c48 commit 89ee072
Show file tree
Hide file tree
Showing 177 changed files with 5,935 additions and 2,457 deletions.
150 changes: 0 additions & 150 deletions .circleci/config.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .jenkins/pipelines/dependencies.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!groovy

pipeline {
agent any
tools {
maven 'apache-maven-latest'
// https://wiki.eclipse.org/Jenkins#JDK
jdk 'temurin-jdk11-latest'
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Check dependency licenses') {
steps {
sh 'echo "Eclipse Dash Tool"'
// Eclipse Dash tool retrieves dependencies from submodules which might need artifacts from previous modules
sh './mvnw -V -B -e -DskipTests install'
sh 'ECLIPSE_DASH_VERSION=1.0.2 ./scripts/eclipse-dash-tool.sh'
}
}
}
post {
success {
archiveArtifacts artifacts: 'target/dependencies-resolved.csv', fingerprint: true
}
}
}
23 changes: 23 additions & 0 deletions .jenkins/pipelines/doc-preview.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!groovy

pipeline {
agent any
tools {
maven 'apache-maven-latest'
// https://wiki.eclipse.org/Jenkins#JDK
jdk 'temurin-jdk11-latest'
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Generate documentation preview') {
when { changeRequest() }
steps {
sh 'echo "Generating project documentation"'
sh './scripts/generateDoc.sh'
archiveArtifacts artifacts: 'docs-generated/*.html,docs-generated/*.txt,docs-generated/*.css', fingerprint: true
}
}
}
}
29 changes: 29 additions & 0 deletions .jenkins/pipelines/java-8.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!groovy

pipeline {
agent any
tools {
maven 'apache-maven-latest'
// https://wiki.eclipse.org/Jenkins#JDK
jdk 'temurin-jdk8-latest'
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Build & Test (Java 8)') {
steps {
sh 'echo "Building Project with Java 8"'
sh '''
if [[ `javac -version 2>&1` == *"1.8.0"* ]]; then
echo "Java 8 Present."
else
echo "Java 8 Not Present."
exit 1
fi
'''
sh './mvnw -V -B -e install'
}
}
}
}
21 changes: 21 additions & 0 deletions .jenkins/pipelines/javadoc.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!groovy

pipeline {
agent any
tools {
maven 'apache-maven-latest'
// https://wiki.eclipse.org/Jenkins#JDK
jdk 'temurin-jdk11-latest'
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Validate Javadoc') {
steps {
sh 'echo "Building Project with Javadoc"'
sh './mvnw -V -B -e -Pjavadoc -DskipTests install javadoc:jar'
}
}
}
}
44 changes: 44 additions & 0 deletions .jenkins/pipelines/release-snapshots.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!groovy

def jKubeInfraEmail = '[email protected]'

pipeline {
agent any
tools {
maven 'apache-maven-latest'
jdk 'temurin-jdk8-latest'
}
stages {
stage('Release Snapshots') {
steps {
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) {
sh 'echo "Setting up GPG signing keys"'
sh 'gpg --batch --import "${KEYRING}"'
sh 'for fpr in $(gpg --list-keys --with-colons | awk -F: \'/fpr:/ {print $10}\' | sort -u); do echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key ${fpr} trust; done'
}
sshagent(['github-bot-ssh']) {
sh 'echo "Cloning Project"'
sh 'git clone [email protected]:eclipse/jkube.git'
}
dir('jkube') {
sh 'echo "Deploying Snapshots"'
sh 'mvn -V -B -e -U -Prelease -Denforcer.skip=true deploy'
}
}
}
}
post {
unsuccessful {
emailext subject: '[JKube] SNAPSHOT deployment: Failure $BUILD_STATUS $PROJECT_NAME #$BUILD_NUMBER',
body: '''Check console output at $BUILD_URL to view the results.''',
recipientProviders: [recipients()],
to: jKubeInfraEmail
}
fixed {
emailext subject: '[JKube] SNAPSHOT deployment: Bach to normal $BUILD_STATUS $PROJECT_NAME #$BUILD_NUMBER',
body: '''Check console output at $BUILD_URL to view the results.''',
recipientProviders: [recipients()],
to: jKubeInfraEmail
}
}
}
43 changes: 43 additions & 0 deletions .jenkins/pipelines/sonar.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!groovy

pipeline {
agent any
tools {
maven 'apache-maven-latest'
// https://wiki.eclipse.org/Jenkins#JDK
jdk 'temurin-jdk11-latest'
}
options {
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Sonar (PR)') {
when { changeRequest() }
steps {
sh 'echo "Building Project and analyzing with Sonar"'
// Required by Sonar to compare coverage info, etc. with master
sh 'git remote add upstream https://github.com/eclipse/jkube.git'
sh 'git fetch upstream'
// Needs install instad of verify since ITs rely on artifacts from previous modules
sh './mvnw -V -B -e -Pjacoco,sonar install ' +
'-Dsonar.pullrequest.key=${CHANGE_ID} ' +
'-Dsonar.pullrequest.branch=${GIT_BRANCH} ' +
'-Dsonar.pullrequest.base=master'
// CodeCov
withCredentials([string(credentialsId: 'CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
sh 'wget -O - https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN'
}
}
}
stage('Sonar (main)') {
when { not { changeRequest() } }
steps {
sh 'echo "Building Project and analyzing with Sonar"'
// Needs install instad of verify since ITs rely on artifacts from previous modules
sh './mvnw -V -B -e -Pjacoco,sonar install'
// CodeCov
sh 'wget -O - https://codecov.io/bash | bash'
}
}
}
}
9 changes: 9 additions & 0 deletions ADOPTERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Adopters

If you're using Eclipse JKube in your organization, please try to add your organization name to this list. It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

You can do this by editing this file after following the [CONTRIBUTING.md](./CONTRIBUTING.md).

| Organization | Description of Use |
|--------------|---------------------------------------------|

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ Usage:
### 1.14-SNAPSHOT
* Fix #1713: Add HelidonHealthCheckEnricher to add Kubernetes health checks for Helidon applications
* Fix #1714: Add HelidonGenerator to add opinionated container image for Helidon applications
* Fix #1929: Docker Image Name parsing fix
* Fix #1985: Update outdated methods in Spring Boot CRD Maven Quickstart
* Fix #2116: Remove user field from ImageName class
* Fix #2219: Kind/Filename mappings include optional apiVersion configuration
* Fix #2224: Quarkus native base image read from properties (configurable)
* Fix #2228: Quarkus native base image uses UBI 8.7

Expand Down Expand Up @@ -494,3 +497,4 @@ Only the set of documented features are available to users.

### 0.1.0 (2019-12-19)
* Initial release

Loading

0 comments on commit 89ee072

Please sign in to comment.