Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Building maven artifacts for Eclipse SUMO
  • From: <Robert.Hilbrich@xxxxxx>
  • Date: Mon, 22 Mar 2021 06:44:52 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: cbi-dev@xxxxxxxxxxx
  • Ironport-hdrordr: A9a23:gQDFhK1fvlzd8CXeZAHAgwqjBDQkLtp033Aq2lEZdDV+dMuEm8 ey2MkB3RjvhzoLHF0mk9aMOK6PKEmskqJdy48XILukQU3aqHKlRbsSibfK7jX8F0TFltJ1+r xnd8FFZ+HYKXhfoYLE7BKjE9AmqeP3lZyAoevF1X9iQUVLRshbnmREIz2WGEF3WwVKbKBRfP H3i6Z6jgGtZGgNaYCDDmQFNtKzxeHjro7sYhINGncchjWmsDXA0t/HOind8hASSjVOxqoZ/W LYiAzl9uH7ovy2m0eZ+1C71eUxpPLRjuZmQPaqt/JQEBHQs2+TFf1cZ4E=
  • Ironport-phdr: A9a23:1fNNCBTikcCe00UNywoS+9SiINpsorqYAWYlgqEPu/d1aq2muq7aF wnh351FslbFUM3h5u5ejKKO6ua8AD1GuMra+yFZOLV3FDY9wf0MmAIhBMPXQWbaF9XNKxIAI cJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3OgV6PPn6FZDPhMqrye+y54fTYwJVjzahfL9+N hq7oRjVu8UMnIdvJag8xhTNr3ZGZu9b2X5mKVWPkhjm+8y+5oRj8yNeu/Ig885PT6D3dLkmQ LJbETorLXk76NXkuhffQwSP4GAcUngNnRpTHwfF9hD6UYzvvSb8q+FwxTOVPczyTbAzRDSi8 6JmQwLmhSsbKzI09nzch8pth6xZvR2hvQRyzY7Kbo+IKPpwcKDTfd0YSmpAQslfWCNOD5igb 4sWDeoNIfpUo5Xgq1YIsBCwBROsBOTqyjJQgXL4wao63P8/HgHcwAwsBdAAsHXQrNruLqcSU Py6zKnTwDrea/NWwy3x55XWfR04p/yHQL1/f9bLx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aY9RJ/JUlMfIyn2 LuKnor+K8eFA==
  • List-archive: <https://www.eclipse.org/mailman/private/cbi-dev/>
  • List-help: <mailto:cbi-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cbi-dev>, <mailto:cbi-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cbi-dev>, <mailto:cbi-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Adcc149b1EC1JDUrTee9VW+6Nl0L5gAOPIkAAHWIB3A=
  • Thread-topic: [cbi-dev] Building maven artifacts for Eclipse SUMO

Hi Tom,
interesting approach - could you share or point to the Jenkins file in which you achieved this functionality? I am unsure on how to grab packages from GitHub and process them further on Jenkins ...
Thanks,
Robert 

> -----Original Message-----
> From: cbi-dev <cbi-dev-bounces@xxxxxxxxxxx> On Behalf Of Tom Schindl via
> cbi-dev
> Sent: Saturday, March 20, 2021 12:38 AM
> To: cbi-dev@xxxxxxxxxxx
> Cc: Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
> Subject: Re: [cbi-dev] Building maven artifacts for Eclipse SUMO
> 
> Hi Robert,
> 
> At DriftFX have a similar problem. We are building native bits for all 3 major
> platforms at Github.
> 
> At Eclipse Jenkins we don't do any building but just grab the artifacts from
> GitHub and:
> * sign them
> * upload them to repo.eclipse.org
> 
> Tom
> 
> Am 19.03.21 um 17:12 schrieb Robert.Hilbrich@xxxxxx:
> > Hi CBI-Dev members,
> >
> > the Eclipse SUMO project is currently hosted on GitHub, based on C++
> > and built with GitHub actions & cmake. As part of our build process,
> > we also create jars (java-bindings for an interface to SUMO - see:
> > https://github.com/orgs/eclipse/packages?repo_name=sumo
> > <https://github.com/orgs/eclipse/packages?repo_name=sumo>), which
> we
> > would like to make publicly available for maven builds. Unfortunately,
> > GitHub Packages require an access token to consume maven artifacts
> > which is a show stopper for other projects relying on our packages.
> > Therefore, we decided to use the Eclipse infrastructure and opened a
> > bug to have https://repo.eclipse.org/content/repositories/sumo/
> > <https://repo.eclipse.org/content/repositories/sumo/> created for us.
> > So far so good .
> >
> > Unfortunately, we cannot push the artifacts from the GitHub actions
> > build to http://repo.eclipse.org <http://repo.eclipse.org>, because
> > upload from external sources is currently not possible. Therefore, our
> > only options seems to be to also build SUMO on Jenkins (in addition to
> > the GitHub actions) and to publish the artifacts from the Jenkins build.
> >
> > We tried to go through the wiki page and experimented with a basic
> > Jenkinsfile on ci.eclipse.org (see:
> > https://github.com/eclipse/sumo/blob/master/Jenkinsfile
> > <https://github.com/eclipse/sumo/blob/master/Jenkinsfile>). For this
> > purpose, we started with a "Multibranch Pipeline" configuration
> > (https://ci.eclipse.org/sumo/job/sumo-build/
> > <https://ci.eclipse.org/sumo/job/sumo-build/>). However, the
> > repository cloning process already fails at 58% with an exception - as
> > seen in the logs below.
> >
> > Our questions are:
> >
> >   * Is our approach ok? Is there a better way to achieve our goal?
> >   * How can we successfully clone the repo in the container
> >     infrastructure? Yes - the repo of SUMO has grown to a repo size of
> >     750MB over the years .
> >   * How can we use an ubuntu image with cmake and gcc to build SUMO
> >     (instead of maven:alpine)?
> >   * How can we configure the infrastructure to trigger the Jenkins build
> >     based on tagged commits to the GitHub Repository master branch only?
> >
> > Thank you for your help - best regards,
> >
> > Robert Hilbrich
> >
> > Excerpt from https://ci.eclipse.org/sumo/job/sumo-build/job/master/
> > <https://ci.eclipse.org/sumo/job/sumo-build/job/master/>:
> >
> > "Resolving deltas:  58% (241715/415811)
> >
> > error: index-pack died of signal 9
> >
> > fatal: index-pack failed
> >
> >          at
> > org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAP
> > IImpl.java:2450)
> >
> >          at
> > org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredent
> > ials(CliGitAPIImpl.java:2051)
> >
> >          at
> > org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl
> > .java:84)
> >
> >          at
> > org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.
> > java:573)
> >
> >          at
> > org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.
> > java:802)
> >
> >          at
> > org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler
> > $GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
> >
> >          at
> > org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler
> > $GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
> >
> >          at hudson.remoting.UserRequest.perform(UserRequest.java:211)
> >
> >          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
> >
> >          at hudson.remoting.Request$2.run(Request.java:375)
> >
> >          at
> > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecuto
> > rService.java:73)
> >
> >          at
> > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> >
> >          at
> > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> > Executor.java:1128)
> >
> >          at
> >
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> > lExecutor.java:628)
> >
> >          at
> > hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:118)
> >
> >          at
> >
> hudson.remoting.Engine$1$$Lambda$33/0x000000007c0116d0.run(Unknown
> > Source)
> >
> >          at java.base/java.lang.Thread.run(Thread.java:836)
> >
> >          Suppressed: hudson.remoting.Channel$CallSiteStackTrace:
> > Remote call to JNLP4-connect connection from
> > 10.128.12.1/10.128.12.1:33512
> >
> >                 at
> > hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
> >
> >                 at
> >
> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.ja
> v
> > a:357)
> >
> >                 at hudson.remoting.Channel.call(Channel.java:1001)
> >
> >                 at
> > org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler
> > .execute(RemoteGitImpl.java:146)
> >
> >                 at
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >
> >                 at
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM
> > ethodAccessorImpl.java:62)
> >
> >                 at
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del
> > egatingMethodAccessorImpl.java:43)
> >
> >                 at
> > java.base/java.lang.reflect.Method.invoke(Method.java:566)
> >
> >                 at
> > org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler
> > .invoke(RemoteGitImpl.java:132)
> >
> >                 at com.sun.proxy.$Proxy106.execute(Unknown Source)
> >
> >                 at
> > hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221)
> >
> >                 at
> > hudson.plugins.git.GitSCM.checkout(GitSCM.java:1299)
> >
> >                 at
> >
> org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java
> > :125)
> >
> >                 at
> > org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run
> > (SCMStep.java:93)
> >
> >                 at
> > org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run
> > (SCMStep.java:80)
> >
> >                 at
> > org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecuti
> > on.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
> >
> >                 at
> > org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecuti
> > on$$Lambda$701/0x000000004c0285f0.run(Unknown
> > Source)
> >
> >                 at
> > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executor
> > s.java:515)
> >
> >                 at
> > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> >
> >                 at
> > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> > Executor.java:1128)
> >
> >                 at
> >
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> > lExecutor.java:628)
> >
> > ... 1 more
> >
> > --------------------------
> >
> > *German Aerospace Center*(DLR)
> >
> > Institute of Transportation Systems | Rutherfordstraße2 | 12489 Berlin
> >
> > *Dr. Robert Hilbrich | Team Leader Simulation of Mobility Systems*
> >
> > Telefon 030 67055-582 | Telefax 030 67055-291 | Robert.Hilbrich@xxxxxx
> > <mailto:Robert.Hilbrich@xxxxxx>
> >
> > www.DLR.de <http://www.dlr.de/>| Institute of Transportation Systems
> > <http://www.dlr.de/ts>
> >
> >
> > _______________________________________________
> > cbi-dev mailing list
> > cbi-dev@xxxxxxxxxxx
> > To unsubscribe from this list, visit
> > https://www.eclipse.org/mailman/listinfo/cbi-dev
> >
> _______________________________________________
> cbi-dev mailing list
> cbi-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/cbi-dev


Back to the top