You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/05/30 13:45:28 UTC

[GitHub] [camel] Nayana-ibm opened a new pull request, #7689: s390x jenkinsfile

Nayana-ibm opened a new pull request, #7689:
URL: https://github.com/apache/camel/pull/7689

   Adding jenkinsfile to run jenkins job on s390x node using jdk11 
   We have removed camel-kudu and docs module as these are not supported on s390x.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1143263491

   @orpiske Can you please trigger now?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141728020

   Thanks @orpiske 
   Just wondering when s390x job will be executed on https://builds.apache.org/job/Camel/
   Anything else needs to be done?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1143231874

   Hello @Nayana-ibm, I just wanted to check if you had a chance to look at the node configuration. I tried running a build today and it still did not work. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] gmcdonald commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
gmcdonald commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1143279489

   Looks like there is a bit more work to do on these nodes, taking a look now


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske merged pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske merged PR #7689:
URL: https://github.com/apache/camel/pull/7689


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141736561

   > Thanks @orpiske Just wondering when s390x job will be executed on https://builds.apache.org/job/Camel/ Anything else needs to be done?
   
   I think I need to work with @oscerd to include that job on the Apache CI before the job is available. I'll check this today. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on a diff in pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on code in PR #7689:
URL: https://github.com/apache/camel/pull/7689#discussion_r885062464


##########
Jenkinsfile.s390x:
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def AGENT_LABEL = 's390x'
+def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest'
+
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
+
+pipeline {
+
+    agent {
+        label AGENT_LABEL
+    }
+
+    tools {
+        jdk JDK_NAME
+    }
+
+    environment {
+        MAVEN_SKIP_RC = true
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+        disableConcurrentBuilds()
+    }
+
+    parameters {
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+    }
+
+    stages {
+
+        stage('Clean workspace') {
+             when {
+                 expression { params.CLEAN }
+             }
+             steps {
+                 sh 'git clean -fdx'
+                 // Remove camel-kudu and docs as these are not supported on s390x.
+                 sed -i '/camel-kudu/d' components/pom.xml
+                 sed -i '0,/docs/{//d;}' pom.xml                 

Review Comment:
   made changes. please review



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1143264407

   Sure, running ... https://ci-builds.apache.org/job/Camel/job/Camel%20JDK11%20Build%20(S390x)/job/main/
   
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on a diff in pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on code in PR #7689:
URL: https://github.com/apache/camel/pull/7689#discussion_r885070803


##########
Jenkinsfile.s390x:
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def AGENT_LABEL = 's390x'
+def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest'
+
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
+
+pipeline {
+
+    agent {
+        label AGENT_LABEL
+    }
+
+    tools {
+        jdk JDK_NAME
+    }
+
+    environment {
+        MAVEN_SKIP_RC = true
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+        disableConcurrentBuilds()
+    }
+
+    parameters {
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+    }
+
+    stages {
+
+        stage('Clean workspace') {
+             when {
+                 expression { params.CLEAN }
+             }
+             steps {
+                 sh 'git clean -fdx'
+                 // Remove camel-kudu and docs as these are not supported on s390x.
+                 sed -i '/camel-kudu/d' components/pom.xml
+                 sed -i '0,/docs/{//d;}' pom.xml                 

Review Comment:
   Looking good, thanks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on a diff in pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on code in PR #7689:
URL: https://github.com/apache/camel/pull/7689#discussion_r885057709


##########
Jenkinsfile.s390x:
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def AGENT_LABEL = 's390x'
+def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest'
+
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
+
+pipeline {
+
+    agent {
+        label AGENT_LABEL
+    }
+
+    tools {
+        jdk JDK_NAME
+    }
+
+    environment {
+        MAVEN_SKIP_RC = true
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+        disableConcurrentBuilds()
+    }
+
+    parameters {
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+    }
+
+    stages {
+
+        stage('Clean workspace') {
+             when {
+                 expression { params.CLEAN }
+             }
+             steps {
+                 sh 'git clean -fdx'
+                 // Remove camel-kudu and docs as these are not supported on s390x.
+                 sed -i '/camel-kudu/d' components/pom.xml
+                 sed -i '0,/docs/{//d;}' pom.xml                 

Review Comment:
   yes. below command worked:
   mvn -Dmaven.test.skip.exec=true clean install -pl \\!docs,\\!components/camel-kudu
   
   I will make changes to file



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141972408

   @Nayana-ibm thanks for confirming. Just let me know once you configure the node, and I can trigger a new build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] oscerd commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
oscerd commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141199889

   As far as I know we don't have s390 instances. So if this is used in a fork, it must be there. Upstream on ASF it makes less sense


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1145860574

   issue is resolved now. Builds are executing https://builds.apache.org/job/Camel/job/Camel%20JDK11%20Build%20(S390x)/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1143268923

   > @orpiske Can you please trigger build now?
   
   Failed with: 
   
   ```
   Error: JAVA_HOME is not defined correctly.
     We cannot execute /home/jenkins/tools/java/latest11/bin/java
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on a diff in pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on code in PR #7689:
URL: https://github.com/apache/camel/pull/7689#discussion_r884946503


##########
Jenkinsfile.s390x:
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def AGENT_LABEL = 's390x'
+def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest'
+
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
+
+pipeline {
+
+    agent {
+        label AGENT_LABEL
+    }
+
+    tools {
+        jdk JDK_NAME
+    }
+
+    environment {
+        MAVEN_SKIP_RC = true
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+        disableConcurrentBuilds()
+    }
+
+    parameters {
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+    }
+
+    stages {
+
+        stage('Clean workspace') {
+             when {
+                 expression { params.CLEAN }
+             }
+             steps {
+                 sh 'git clean -fdx'
+                 // Remove camel-kudu and docs as these are not supported on s390x.
+                 sed -i '/camel-kudu/d' components/pom.xml
+                 sed -i '0,/docs/{//d;}' pom.xml                 

Review Comment:
   Maybe it's easier to run: 
   `mvn -pl "!camel-kudu,!docs" -P install` 
   
   Are you able to check if that works?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on a diff in pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on code in PR #7689:
URL: https://github.com/apache/camel/pull/7689#discussion_r885057709


##########
Jenkinsfile.s390x:
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def AGENT_LABEL = 's390x'
+def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest'
+
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
+
+pipeline {
+
+    agent {
+        label AGENT_LABEL
+    }
+
+    tools {
+        jdk JDK_NAME
+    }
+
+    environment {
+        MAVEN_SKIP_RC = true
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+        disableConcurrentBuilds()
+    }
+
+    parameters {
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+    }
+
+    stages {
+
+        stage('Clean workspace') {
+             when {
+                 expression { params.CLEAN }
+             }
+             steps {
+                 sh 'git clean -fdx'
+                 // Remove camel-kudu and docs as these are not supported on s390x.
+                 sed -i '/camel-kudu/d' components/pom.xml
+                 sed -i '0,/docs/{//d;}' pom.xml                 

Review Comment:
   yes. below command worked:
   mvn -Dmaven.test.skip.exec=true clean install -pl \!docs,\!components/camel-kudu
   
   I will make changes to file



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141207734

   > As far as I know we don't have s390 instances. So if this is used in a fork, it must be there. Upstream on ASF it makes less sense
   
   +1. 
   
   In the case you want to include that node into the Apache CI (which, IMHO, I would love that), so that we have a s390x slave, you probably need to create a ticket to the Apache Infra. Here's a sample ticket you can look at [1] (that was for adding ppc64le nodes). If you already have a ticket, it would be good to link it here. 
   
   Thanks!
   
   
   1. https://issues.apache.org/jira/browse/INFRA-22612


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141195665

   > 
   
   Hello, thanks for contributing this. I do have a question, though: is this for running on s390 at Apache? I don't see any s390 node there. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141278769

   > > As far as I know we don't have s390 instances. So if this is used in a fork, it must be there. Upstream on ASF it makes less sense
   > 
   > +1.
   > 
   > @Nayana-ibm In the case you want to include that node into the Apache CI (which, IMHO, I would love that), so that we have a s390x slave, you probably need to create a ticket to the Apache Infra. Here's a sample ticket you can look at [1] (that was for adding ppc64le nodes for Kafka, but the process would be similar for Camel). If you already have a ticket, it would be good to link it here.
   > 
   > Thanks!
   > 
   >     1. https://issues.apache.org/jira/browse/INFRA-22612
   
   We have already added s390x nodes to Apache CI 
   listed here:  https://jenkins-ccos.apache.org/view/all/  (jenkins-s390x-1, jenkins-s390x-2, jenkins-s390x-3, jenkins-s390x-4)
   issue: https://issues.apache.org/jira/browse/INFRA-21433


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on a diff in pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on code in PR #7689:
URL: https://github.com/apache/camel/pull/7689#discussion_r884946503


##########
Jenkinsfile.s390x:
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def AGENT_LABEL = 's390x'
+def JDK_NAME = env.JDK_NAME ?: 'jdk_11_latest'
+
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
+
+pipeline {
+
+    agent {
+        label AGENT_LABEL
+    }
+
+    tools {
+        jdk JDK_NAME
+    }
+
+    environment {
+        MAVEN_SKIP_RC = true
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+        disableConcurrentBuilds()
+    }
+
+    parameters {
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace')
+    }
+
+    stages {
+
+        stage('Clean workspace') {
+             when {
+                 expression { params.CLEAN }
+             }
+             steps {
+                 sh 'git clean -fdx'
+                 // Remove camel-kudu and docs as these are not supported on s390x.
+                 sed -i '/camel-kudu/d' components/pom.xml
+                 sed -i '0,/docs/{//d;}' pom.xml                 

Review Comment:
   Maybe it's easier to run: 
   `mvn -pl "!camel-kudu,!docs" -P install` 
   
   Are you able to check if that works, please?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141288965

   > > > As far as I know we don't have s390 instances. So if this is used in a fork, it must be there. Upstream on ASF it makes less sense
   > > 
   > > 
   > > +1.
   > > @Nayana-ibm In the case you want to include that node into the Apache CI (which, IMHO, I would love that), so that we have a s390x slave, you probably need to create a ticket to the Apache Infra. Here's a sample ticket you can look at [1] (that was for adding ppc64le nodes for Kafka, but the process would be similar for Camel). If you already have a ticket, it would be good to link it here.
   > > Thanks!
   > > ```
   > > 1. https://issues.apache.org/jira/browse/INFRA-22612
   > > ```
   > 
   > We have already added s390x nodes to Apache CI listed here: https://jenkins-ccos.apache.org/view/all/ (jenkins-s390x-1, jenkins-s390x-2, jenkins-s390x-3, jenkins-s390x-4) issue: https://issues.apache.org/jira/browse/INFRA-21433
   
   Thank you for clarifying this! In this case, it's +1 from me. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1143269793

   @Nayana-ibm BTW, if you want, feel free to ping me on Zulip chat and we can try to sort it out quicker. You can find me at https://camel.zulipchat.com/. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141940166

   > > @orpiske nodes are online now. Build fails with an error: _Error: JAVA_HOME is not defined correctly._ Do I need to update jenkinsfile to set PATH or jenkins job configuration will handle this?
   > 
   > I believe the JAVA_HOME has to be configured at the node configuration, no? If not, I think it will need to be set on the Jenkinsfile, indeed.
   
   I think it should be set on node configuration.  As I don't see any other camel jenkinsfile sets the JAVA_HOME


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141937179

   > @orpiske nodes are online now. Build fails with an error: _Error: JAVA_HOME is not defined correctly._ Do I need to update jenkinsfile to set PATH or jenkins job configuration will handle this?
   
   I believe the JAVA_HOME has to be configured at the node configuration, no? If not, I think it will need to be set on the Jenkinsfile, indeed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141932659

   @orpiske nodes are online now.  
   Build fails with an error: _Error: JAVA_HOME is not defined correctly._
   Do I need to update jenkinsfile to set PATH or jenkins job configuration will handle this? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141755726

   @Nayana-ibm actually, I could just copy/edit the CI configuration and added the job. You can watch it here: https://ci-builds.apache.org/job/Camel/job/Camel%20JDK11%20Build%20(S390x)/job/main/6/console


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] orpiske commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141765153

   @Nayana-ibm FYI, the build seems stuck waiting for the s390x nodes to come online. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] Nayana-ibm commented on pull request #7689: s390x jenkinsfile

Posted by GitBox <gi...@apache.org>.
Nayana-ibm commented on PR #7689:
URL: https://github.com/apache/camel/pull/7689#issuecomment-1141783745

   @orpiske Yes..nodes are offline right now. I will check with @gmcdonald 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org