diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000000..fdc99705852 --- /dev/null +++ b/Jenkinsfile @@ -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" + } + } + } +} + diff --git a/tests/features/kogito-jobs-service.feature b/tests/features/kogito-jobs-service.feature index 778cd80d80f..127a5b4bb11 100644 --- a/tests/features/kogito-jobs-service.feature +++ b/tests/features/kogito-jobs-service.feature @@ -75,6 +75,7 @@ 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 | @@ -82,4 +83,4 @@ Feature: Kogito-jobs-service feature. | 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. \ No newline at end of file + And container log should contain Connection to node -1 (localhost/127.0.0.1:11111) could not be established. diff --git a/tests/test-apps/clone-repo.sh b/tests/test-apps/clone-repo.sh index d68948f92b2..279089c2224 100755 --- a/tests/test-apps/clone-repo.sh +++ b/tests/test-apps/clone-repo.sh @@ -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"