Kubernetes without Docker and "agent docker"

2021-07-02 Thread Andre Höing


We are using the Kubernetes plugin to spawn agents whenever we need them. 
Each of the agents has two build slots.

 In our pipelines, we use

```

stage('Service') 
*{   *agent 
*{ *docker 
*{   *image 'quay.io/'

*}   }*

```

to be flexible in the build image in each step. This causes that here, the 
openjdk image is spawned within the agent created with the Kubernetes 
plugin, that again is a running container in Kubernetes.

 

Since we also use docker and jib in our pipelines, these tools as started 
with the the docker in docker images (see example above, it would be an 
openjdk image).

Now we are facing the Kubernetes feature to remove docker from Kubernetes. 
In our current situation, the docker socket is mounted to the agents 
running in the pod and therefore we could use docker there. With Kubernetes 
19, this will not be possible any longer.

 

Do you have any suggestions or hints how to solve this without redesigning 
all of our pipelines?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f08c22a0-df0c-4c42-aa98-1b4a1318977en%40googlegroups.com.


Build fails when there's no changes on SCM

2017-01-23 Thread Andre Silva
I've recently upgraded jenkins to 2.4.1 and now when I manually trigger a 
build and there's no changes on SCM (Mercurial), build fails with no other 
message...

build log follows:

Started by user [user]
[EnvInject] - Loading node environment variables.
Building in workspace [Job path]/[Job name]

[fja] $ hg showconfig paths.default
[fja] $ hg pull --rev default
pulling from http://[user]:***@[server]:[port]/[ 
path]
no changes found
ERROR: Failed to pullERROR 
: Failed to pull
Performing Post build task...
Could not match :BUILD SUCCESS  : False


has anyone experienced this?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/172b658e-ebc3-4fcd-a89a-2d74c2480b18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


VSS Plugin - Workspace Folder Structure

2013-09-05 Thread Andre Greeff
Greetings all... (:

I'm somewhat new to CI servers in general so I was expecting a somewhat 
steep learning curve... Jenkins has made life so very easy though, I'm most 
of the way through my config and so far I've only had to do minimal 
Googling.

Right now though, I'm having a problem with the VSS plugin 
(linkhttps://wiki.jenkins-ci.org/display/JENKINS/Visual+SourceSafe+Plugin). 
Let me start with my current configuration... All projects in question are 
built using NetBeans 7, so all NB's baggage comes along with it 
unfortunately.

For Jenkins:

   - Jenkins home directory: C:\Jenkins
   - Launched with java -jar C:\Jenkins\jenkins.war to run as user
   - Active workspace: C:\Jenkins\workspace

VSS Plugin options for ProjectX

   - VSS Folder Path: $/Andre - Test/ProjectX/
  - This folder contains 'build.xml', 'lib', 'nbproject' (excl 
  'private') and 'src'.
   
Project Settings:

   - Name: ProjectX
   - Other than pointing Ant to local NB installation folder and 
   configuring VSS, everything else is default.


When pulling files from VSS, the plugin strips the '$' from the VSS folder 
path and recreates that structure inside the workspace folder. So for 
ProjectX as described above, Jenkins now has my source files in:

   - C:\Jenkins\jobs\ProjectX\workspace\Andre - Test\ProjectX\
  - This folder contains 'build.xml', 'lib', 'nbproject' (excl 
  'private') and 'src'.
   

In order to get Jenkins to build this, I now have to manually set the 
buildfile path for Ant to be Andre - Test\ProjectX. Doing that works fine 
though, and it only needs to be done once, so it's not that bad I suppose. 
I'd still like to know if it's possible to get this olugin to stop 
recreating the project parent folder structure from SourceSafe inside my 
workspace. I'd like the plugin to instead do the following:

   - Pull source from VSS path ($/Andre - Test/ProjectX/)
   - Place files into C:\Jenkins\jobs\ProjectX\workspace
  - So this folder contains 'build.xml' [, ...]
   - Build project using standard project workspace folder


Looking at the VSS plugin source code, if line 233 of 
VSSSCM.javahttps://github.com/jenkinsci/vss-plugin/blob/master/src/main/java/scm/vss/VSSSCM.java#L233
 is changed from...
String localPath = file.getAbsolutePath() + / + vssPath.substring(2);
...to...
String localPath = file.getAbsolutePath() + /;
...then I think it would achieve what I'm looking for. But surely there 
must be an easier way for a non-programmer to get this working...? I am, 
after all, only an enthusiastic and adventurous software tester. (:

Anybody have any bright ideas here?

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: InvocationTargetException, StackOverflowError

2013-02-20 Thread andre
I founded the solution

just increase the hep size in  MAVEN_OPTS=-Xss2m

source:

http://jira.codehaus.org/browse/MASSEMBLY-549

On Tuesday, February 19, 2013 6:41:42 PM UTC-3, andre wrote:

 Hi,

 I have a job that has main pom.xml, and this pom call the deploy for 10 
 projects (and one other project  dependency - other pom) ...

 when I start my job,  after certain time, this exception occurs  ... does 
 anyone know what can be wrong ? (out of memory , hibernade  .. ? )

 thanks,

 Andre



 [INFO] org/hibernate/type/OrderedMapType.class already added, skipping
 java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
   at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
   at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
   at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
   at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
   at hudson.remoting.UserRequest.perform(UserRequest.java:118)
   at hudson.remoting.UserRequest.perform(UserRequest.java:48)
   at hudson.remoting.Request$2.run(Request.java:326)
   at 
 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.StackOverflowError
   at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:58)
   at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:392)
   at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
   at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
   at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:252)
   at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
   at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
   at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
   at java.io.PrintStream.write(PrintStream.java:476)
   at java.io.PrintStream.print(PrintStream.java:619)
   at 
 org.apache.maven.cli.PrintStreamLogger.info(PrintStreamLogger.java:110)
   at 
 org.codehaus.plexus.logging.AbstractLogger.info(AbstractLogger.java:51)
   at 
 org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)

   at 
 org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)

   at 
 org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)
  

   at 
 org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)

   at 
 org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)
  (this lines repeats over down 1500 times)

 ...

 channel stopped
 ERROR: Failed to parse POMshudson.util.IOException2 
 http://stacktrace.jenkins-ci.org/search?query=hudson.util.IOException2: 
 java.lang.reflect.InvocationTargetException
   at hudson.maven.Maven3Builder.call(Maven3Builder.java:162) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.Maven3Builder.callentity=method
   at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.Maven3Builder.callentity=method
   at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.performentity=method
   at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.performentity=method
   at hudson.remoting.Request$2.run(Request.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.runentity=method
   at 
 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.callentity=method
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRunentity=method
   at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.runentity=method

InvocationTargetException, StackOverflowError

2013-02-19 Thread andre


Hi,

I have a job that has main pom.xml, and this pom call the deploy for 10 
projects (and one other project  dependency - other pom) ...

when I start my job,  after certain time, this exception occurs  ... does 
anyone know what can be wrong ? (out of memory , hibernade  .. ? )

thanks,

Andre



[INFO] org/hibernate/type/OrderedMapType.class already added, skipping
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.StackOverflowError
at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:58)
at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:392)
at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:252)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
at java.io.PrintStream.write(PrintStream.java:476)
at java.io.PrintStream.print(PrintStream.java:619)
at 
org.apache.maven.cli.PrintStreamLogger.info(PrintStreamLogger.java:110)
at 
org.codehaus.plexus.logging.AbstractLogger.info(AbstractLogger.java:51)
at 
org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)

at 
org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)

at 
org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)
 

at 
org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)

at 
org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)
 (this lines repeats over down 1500 times)

...

channel stopped
ERROR: Failed to parse POMshudson.util.IOException2 
http://stacktrace.jenkins-ci.org/search?query=hudson.util.IOException2: 
java.lang.reflect.InvocationTargetException
at hudson.maven.Maven3Builder.call(Maven3Builder.java:162) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.Maven3Builder.callentity=method
at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.Maven3Builder.callentity=method
at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.performentity=method
at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.performentity=method
at hudson.remoting.Request$2.run(Request.java:326) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.runentity=method
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.callentity=method
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRunentity=method
at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.runentity=method
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 
http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.runTaskentity=method