Skip to content

Commit

Permalink
ci: replace CircleCI Java 8 job with Jenkins
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa committed Jul 12, 2023
1 parent d63d280 commit adb4dd8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .circleci/config.yml

This file was deleted.

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'
}
}
}
}

0 comments on commit adb4dd8

Please sign in to comment.