diff --git a/.sqa/config.yml b/.sqa/config.yml new file mode 100644 index 0000000..e564459 --- /dev/null +++ b/.sqa/config.yml @@ -0,0 +1,20 @@ +config: + credentials: + - id: my-dockerhub-token + password_var: GIT_PASS + type: username_password + username_var: GIT_USER + project_repos: + simple-java-maven-app: + branch: master + repo: https://github.com/jenkins-docs/simple-java-maven-app +environment: + JPL_DOCKERPUSH: docs service1 service4 + JPL_IGNOREFAILURES: defined +sqa_criteria: + qc_style: + repos: + simple-java-maven-app: + commands: + - mvn checkstyle:check + container: checkstyle diff --git a/.sqa/docker-compose.yml b/.sqa/docker-compose.yml new file mode 100644 index 0000000..cbc1c93 --- /dev/null +++ b/.sqa/docker-compose.yml @@ -0,0 +1,10 @@ +services: + checkstyle: + command: sleep 600000 + hostname: checkstyle-host + image: checkstyle/maven-builder-image + volumes: + - source: ./ + target: ./simple-java-app + type: bind +version: '3.7' diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0a3df54 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,28 @@ +@Library(['github.com/indigo-dc/jenkins-pipeline-library@release/2.1.0']) _ + +def projectConfig + +pipeline { + agent any + + stages { + stage('SQA baseline dynamic stages') { + steps { + script { + projectConfig = pipelineConfig( + './.sqa/config.yml', + null, + null, + null, + 'eoscsynergy/jpl-validator:jib-with-jpl') + buildStages(projectConfig) + } + } + post { + cleanup { + cleanWs() + } + } + } + } +} \ No newline at end of file