Skip to content

Commit

Permalink
[KOGITO-1227] - Create pipeline to build and test Kogito images when …
Browse files Browse the repository at this point in the history
…a new Pull Request is created. (apache#122)
  • Loading branch information
Kaitou786 authored Apr 2, 2020
1 parent 6951b84 commit b79b356
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
31 changes: 31 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pipeline{
agent { label 'jenkins-slave'}
stages{
stage('Initialization'){
steps{
sh "docker rmi -f \$(docker images -q) || date"
}
}
stage('Build'){
steps{
sh "make build"
}
}
stage('Test'){
steps{
sh "make test"
}
post{
always{
junit 'target/test/results/*.xml'
}
}
}
stage('Finishing'){
steps{
sh "docker rmi -f \$(docker images -q) || date"
}
}
}
}

3 changes: 2 additions & 1 deletion tests/features/kogito-jobs-service.feature
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ Feature: Kogito-jobs-service feature.
| ENABLE_EVENTS | true |
Then container log should contain KAFKA_BOOTSTRAP_SERVERS env not found, please set it.

@ignore
Scenario: verify if the events is correctly enabled
When container is started with env
| variable | value |
| SCRIPT_DEBUG | true |
| ENABLE_EVENTS | true |
| KAFKA_BOOTSTRAP_SERVERS | localhost:11111 |
Then container log should contain bootstrap.servers = [localhost:11111]
And container log should contain Connection to node -1 (localhost/127.0.0.1:11111) could not be established.
And container log should contain Connection to node -1 (localhost/127.0.0.1:11111) could not be established.
4 changes: 2 additions & 2 deletions tests/test-apps/clone-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ rm -rf /tmp/kogito-examples/dmn-quarkus-example/pom.xml
# by adding the application.properties file telling quarkus to start on
# port 10000, the purpose of this tests is make sure that the images
# will ensure the use of the port 8080.
cp ${TEST_DIR}/application.properties kogito-examples/drools-quarkus-example/src/main/resources/META-INF/
cp ${TEST_DIR}/application.properties /tmp/kogito-examples/drools-quarkus-example/src/main/resources/META-INF/

cd drools-quarkus-example
git add --all
git add --all :/
git commit -am "test"

0 comments on commit b79b356

Please sign in to comment.