TOMEE-4196 - Added pipelines folder and it's pipelines for this branch
diff --git a/pipelines/main-build-full b/pipelines/main-build-full
new file mode 100644
index 0000000..4ff2c6d
--- /dev/null
+++ b/pipelines/main-build-full
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end clean install -Pall-adapters -Dfile.encoding=UTF-8'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-build-full-arquillian b/pipelines/main-build-full-arquillian
new file mode 100644
index 0000000..eb13f44
--- /dev/null
+++ b/pipelines/main-build-full-arquillian
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end clean install -Pall-adapters -Dfile.encoding=UTF-8 -pl arquillian/arquillian-common,arquillian/arquillian-openejb-embedded,arquillian/arquillian-openejb-transaction-provider,arquillian/arquillian-tck,arquillian/arquillian-tomee-common,arquillian/arquillian-tomee-embedded,arquillian/arquillian-tomee-moviefun-example,arquillian/arquillian-tomee-remote,arquillian/arquillian-tomee-tests,arquillian/arquillian-tomee-webapp-remote,arquillian/ziplock'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-build-full-examples b/pipelines/main-build-full-examples
new file mode 100644
index 0000000..8541e16
--- /dev/null
+++ b/pipelines/main-build-full-examples
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end clean install -Pall-adapters -Dfile.encoding=UTF-8 -pl examples/access-timeout-meta/,examples/access-timeout/,examples/alternate-descriptors/,examples/application-composer/,examples/applicationcomposer-jaxws-cdi/,examples/applicationexception/,examples/arquillian-jpa/,examples/async-methods/,examples/async-postconstruct/,examples/async-servlet/,examples/bean-validation-design-by-contract/,examples/bval-evaluation-redeployment/,examples/cdi-alternative-and-stereotypes/,examples/cdi-application-scope/,examples/cdi-basic/,examples/cdi-ejbcontext-jaas/,examples/cdi-events/,examples/cdi-interceptors/,examples/cdi-produces-disposes/,examples/cdi-produces-field/,examples/cdi-qualifier/,examples/cdi-realm/,examples/cdi-request-scope/,examples/cdi-session-scope/,examples/change-jaxws-url/,examples/client-resource-lookup-preview/,examples/cloud-tomee-azure/,examples/component-interfaces/,examples/concurrency-utils/,examples/connector-ear/,examples/connector-war/,examples/cucumber-jvm/,examples/custom-injection/,examples/datasource-ciphered-password/,examples/datasource-definition/,examples/datasource-versioning/,examples/decorators/,examples/dynamic-dao-implementation/,examples/dynamic-datasource-routing/,examples/dynamic-implementation/,examples/dynamic-proxy-to-access-mbean/,examples/ear-testing/,examples/ejb-examples/,examples/ejb-remote-call-2/,examples/ejb-remote-call/,examples/ejb-webservice/,examples/groovy-cdi/,examples/groovy-jpa/,examples/groovy-spock/,examples/helloworld-weblogic/,examples/injection-of-connectionfactory/,examples/injection-of-datasource/,examples/injection-of-ejbs/,examples/injection-of-entitymanager/,examples/injection-of-env-entry/,examples/interceptors/,examples/java-modules/,examples/javamail-velocity/,examples/javamail/,examples/jaxrs-filter/,examples/jaxrs-json-provider-jettison/,examples/jpa-eclipselink/,examples/jpa-enumerated/,examples/jpa-hibernate-arquillian/,examples/jpa-hibernate/,examples/jsf-cdi-and-ejb/,examples/jsf-managedBean-and-ejb/,examples/jsonb-configuration/,examples/jsonb-custom-serializer/,examples/junit5-application-composer/,examples/junit5-arquillian-multiple-tomee/,examples/junit5-arquillian-simple-websockets/,examples/lookup-of-ejbs-with-descriptor/,examples/lookup-of-ejbs/,examples/moviefun-rest/,examples/moviefun/,examples/movies-complete-meta/,examples/movies-complete/,examples/mp-config-example/,examples/mp-config-source-database/,examples/mp-custom-healthcheck/,examples/mp-faulttolerance-fallback/,examples/mp-faulttolerance-retry/,examples/mp-jwt-bean-validation-strongly-typed/,examples/mp-jwt-bean-validation/,examples/mp-metrics-counted/,examples/mp-metrics-gauge/,examples/mp-metrics-histogram/,examples/mp-metrics-metered/,examples/mp-metrics-timed/,examples/mp-opentracing-traced/,examples/mp-rest-jwt-principal/,examples/mp-rest-jwt-public-key/,examples/mtom/,examples/multi-jpa-provider-testing/,examples/multiple-arquillian-adapters/,examples/persistence-fragment/,examples/pojo-webservice/,examples/quartz-app/,examples/realm-in-tomee/,examples/reload-persistence-unit-properties/,examples/resources-declared-in-webapp/,examples/resources-jmx-example/,examples/rest-applicationcomposer-mockito/,examples/rest-applicationcomposer/,examples/rest-cdi/,examples/rest-example-with-application/,examples/rest-example/,examples/rest-jaas/,examples/rest-on-ejb/,examples/rest-xml-json/,examples/scala-basic/,examples/schedule-events/,examples/schedule-expression/,examples/schedule-methods-meta/,examples/schedule-methods/,examples/security-custom-identitystore/,examples/security-tomcat-user-identitystore/,examples/server-events/,examples/serverless-builder/,examples/serverless-tomee-microprofile/,examples/serverless-tomee-plume/,examples/serverless-tomee-plus/,examples/serverless-tomee-webprofile/,examples/simple-cdi-interceptor/,examples/simple-cmp2/,examples/simple-ear/,examples/simple-jms-context/,examples/simple-jms/,examples/simple-mdb-and-cdi/,examples/simple-mdb-with-descriptor/,examples/simple-mdb/,examples/simple-remote-tomcatusers/,examples/simple-rest/,examples/simple-singleton/,examples/simple-stateful-callbacks/,examples/simple-stateful/,examples/simple-stateless-callbacks/,examples/simple-stateless-with-descriptor/,examples/simple-stateless/,examples/simple-webservice-without-interface/,examples/simple-webservice/,examples/singleton-startup-ordering/,examples/struts/,examples/telephone-stateful/,examples/testcase-injection/,examples/testing-security-2/,examples/testing-security-3/,examples/testing-security-4/,examples/testing-security-meta/,examples/testing-security/,examples/testing-transactions-bmt/,examples/testing-transactions/,examples/tomee-jms-portability/,examples/transaction-rollback/,examples/troubleshooting/,examples/webservice-attachments/,examples/webservice-handlerchain/,examples/webservice-holder/,examples/webservice-inheritance/,examples/webservice-security/,examples/webservice-ssl-client-cert/,examples/webservice-ws-security/,examples/webservice-ws-with-resources-config/,examples/websocket-jms/,examples/websocket-tls-basic-auth/,examples/xa-datasource/'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-build-full-itests b/pipelines/main-build-full-itests
new file mode 100644
index 0000000..a79906b
--- /dev/null
+++ b/pipelines/main-build-full-itests
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end clean install -Pall-adapters -Dfile.encoding=UTF-8 -pl itests/failover,itests/failover-ejb,itests/jaxrs,itests/legacy-client,itests/legacy-server,itests/microprofile-jwt-itests,itests/openejb-itests-app,itests/openejb-itests-beans,itests/openejb-itests-client,itests/openejb-itests-interceptor-beans,itests/openejb-itests-servlets,itests/openejb-itests-web,itests/tomee-server-composer,itests/tomee-server-version'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-build-full-tck b/pipelines/main-build-full-tck
new file mode 100644
index 0000000..ef8bcd8
--- /dev/null
+++ b/pipelines/main-build-full-tck
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end clean install -Pall-adapters -Dfile.encoding=UTF-8 -pl tck/ -amd'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-build-quick b/pipelines/main-build-quick
new file mode 100644
index 0000000..fa26d6e
--- /dev/null
+++ b/pipelines/main-build-quick
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -T 2C -U --show-version --fail-at-end clean install -pl tomee/apache-tomee -am -Dfile.encoding=UTF-8'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-deploy b/pipelines/main-deploy
new file mode 100644
index 0000000..f2eb9ef
--- /dev/null
+++ b/pipelines/main-deploy
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Deploy') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end -DskipTests -Pno-examples clean deploy'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-owasp-check b/pipelines/main-owasp-check
new file mode 100644
index 0000000..0279a43
--- /dev/null
+++ b/pipelines/main-owasp-check
@@ -0,0 +1,49 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version --fail-at-end clean install -Pno-examples,owasp-report -DskipTests -Dfile.encoding=UTF-8'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+    }
+}
diff --git a/pipelines/main-sanity-checks b/pipelines/main-sanity-checks
new file mode 100644
index 0000000..ddccf6b
--- /dev/null
+++ b/pipelines/main-sanity-checks
@@ -0,0 +1,57 @@
+pipeline {
+        agent  {
+            label "c6i2xlarge"
+           }
+
+    stages {
+        stage('checkout') {
+            steps {
+              checkout scmGit(branches: [[name: '*/main']], browser: github('https://github.com/apache/tomee'), extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://github.com/apache/tomee']])
+            }
+        }
+        stage('Build without tests') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -U --show-version clean install -DskipTests'
+                }
+            }
+        }
+        stage('Test') {
+            tools {
+                 maven 'maven_3_latest'
+                  jdk 'jdk_11_latest'
+            }
+            steps {
+                timeout(time: 180, unit: 'MINUTES') {
+                    sh 'mvn -T 2C -U --show-version --fail-at-end clean install -Pstyle,rat -DskipTests -Dfile.encodig=UTF-8'
+                }
+            }
+            post {
+                    always {
+                            timeout(time: 15, unit: 'MINUTES') {
+                            junit '**/target/surefire-reports/TEST-*.xml'
+                        }
+                    }
+                }
+        }
+    }
+    post{
+        changed{
+            emailext to: "commits@tomee.apache.org",
+            subject: "Jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+            body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+        }
+        success {
+            build job: 'main-deploy', wait: false
+            build job: 'main-build-quick', wait: false
+            build job: 'main-build-full-arquillian', wait: false
+            build job: 'main-build-full-examples', wait: false
+            build job: 'main-build-full-itests', wait: false
+            build job: 'main-build-full-tck', wait: false
+        }
+    }
+}