-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eclipse:master' into issue-1769
- Loading branch information
Showing
177 changed files
with
5,935 additions
and
2,457 deletions.
There are no files selected for viewing
This file was deleted.
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,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 | ||
} | ||
} | ||
} |
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,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 | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
#!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' | ||
} | ||
} | ||
} | ||
} |
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,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' | ||
} | ||
} | ||
} | ||
} |
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,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 | ||
} | ||
} | ||
} |
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,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' | ||
} | ||
} | ||
} | ||
} |
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,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 | | ||
|--------------|---------------------------------------------| | ||
|
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.