Skip to content

Commit aeddc38

Browse files
authored
Merge pull request #37 from mcanoy/db-sync
Get all engagements request. Allow for updating files
2 parents 9c7ddc4 + 57e5a30 commit aeddc38

26 files changed

+511
-605
lines changed

Jenkinsfile

Lines changed: 0 additions & 196 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ Deployment template will read from the above secret and inject following env var
151151
* `CACHE_USER`
152152
* `CACHE_PASS` (should be secret and match the Infinispan operator secret)
153153
* `CACHE_USE_AUTH` set to true
154-
* *
155154

156155
### OpenShift Applier
157156

@@ -163,82 +162,4 @@ ansible-galaxy install -r requirements.yml --roles-path=roles --force
163162
ansible-playbook apply.yml -i inventory/
164163
```
165164

166-
## Pipeline (deprecated)
167-
168-
The deployment pipeline is running through a `Jenkinsfile` located in the root folder of the project. This `Jenksinfile` is written in groovy.
169-
The pipeline expects the nexus is available nexus:8080. Make sure that nexus is available and accessible to Jenkins.
170-
171-
#### Prepare environment for [ENVIRONMENT] deploy
172-
173-
The first stage is going to set environment vars based on the branch selected to build:
174-
175-
```groovy
176-
master - env.PROJECT_NAMESPACE = "${NAMESPACE_PREFIX}-test"
177-
env.NODE_ENV = "test"
178-
env.QUARKUS_PROFILE = "openshift-test"
179-
env.RELEASE = true
180-
181-
develop.* or feature.* - env.PROJECT_NAMESPACE = "${NAMESPACE_PREFIX}-dev"
182-
env.NODE_ENV = "dev"
183-
env.QUARKUS_PROFILE = "openshift-dev"
184-
```
185-
186-
#### Ansible
187-
188-
Jenkins will spin up an Ansible agent that will run a playbook called OpenShift Applier (https://github.com/redhat-cop/openshift-applier). The openshift-applier is used to apply OpenShift objects to an OpenShift Cluster.
189-
190-
This stage is going to download the playbook dependencies using Ansible Galaxy and apply the playbook using **build** as a *filter_tag*. This is going to create the necessary resources for our application build in an OpenShift cluster.
191-
192-
#### Test/Maven Build/Nexus/OpenShift Build
193-
194-
Jenkins will spin up a Maven agent to test, Maven build, upload to Nexus and start the OpenShift build.
195-
196-
##### Test
197-
198-
```
199-
mvn clean test
200-
```
201-
202-
##### Maven Build
203-
204-
```
205-
mvn clean install
206-
```
207-
208-
##### Static Code Analysis
209-
210-
```
211-
mvn checkstyle:checkstyle
212-
mvn org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true
213-
```
214-
215-
##### Nexus
216-
217-
```
218-
mvn deploy
219-
```
220-
221-
##### OpenShift Build
222-
223-
The OpenShift build is going to start after the Nexus deployment is complet and successful.
224-
225-
###### OpenShift Atomic Registry
226-
227-
If you're pushing from the master branch the build will create a container image and push it to the Openshift internal registry.
228-
229-
```
230-
oc project ${PIPELINES_NAMESPACE}
231-
oc patch bc ${APP_NAME} -p "{\\"spec\\":{\\"output\\":{\\"to\\":{\\"kind\\":\\"ImageStreamTag\\",\\"name\\":\\"${APP_NAME}:${JENKINS_TAG}\\"}}}}"
232-
oc start-build ${APP_NAME} --from-file=target/${ARTIFACTID}-${VERSION}-runner.jar --follow
233-
```
234-
235-
###### Quay
236-
237-
If you're pushing from a release tag the build will create a container image and push it to Quay.
238-
239-
```
240-
oc project ${PIPELINES_NAMESPACE} # probs not needed
241-
oc patch bc ${APP_NAME} -p "{\\"spec\\":{\\"output\\":{\\"to\\":{\\"kind\\":\\"DockerImage\\",\\"name\\":\\"quay.io/rht-labs/${APP_NAME}:${JENKINS_TAG}\\"}}}}"
242-
oc start-build ${APP_NAME} --from-file=target/${ARTIFACTID}-${VERSION}-runner.jar --follow
243-
```
244165

lombok.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lombok.addLombokGeneratedAnnotation = true

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
</dependency>
7979
<!-- Metrics -->
8080
<dependency>
81-
<groupId>org.eclipse.microprofile.metrics</groupId>
82-
<artifactId>microprofile-metrics-api</artifactId>
81+
<groupId>io.quarkus</groupId>
82+
<artifactId>quarkus-smallrye-metrics</artifactId>
8383
</dependency>
8484
<!-- Other -->
8585
<dependency>

src/main/java/com/redhat/labs/cache/EventHandler.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/java/com/redhat/labs/cache/GitSyncManager.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)