-
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.
- Loading branch information
Showing
1,247 changed files
with
8,935 additions
and
3,225 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
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
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 = 'jkube-infra@eclipse.org' | ||
|
||
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 git@github.com: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 | ||
} | ||
} | ||
} |
Oops, something went wrong.