[JIRA] (JENKINS-13407) Jenkins does not run sbt builds when the process is in the background

24 views
Skip to first unread message

david@walend.net (JIRA)

unread,
Apr 10, 2012, 11:03:24 PM4/10/12
to jenkinsc...@googlegroups.com
David Walend created JENKINS-13407:
--------------------------------------

Summary: Jenkins does not run sbt builds when the process is in the background
Key: JENKINS-13407
URL: https://issues.jenkins-ci.org/browse/JENKINS-13407
Project: Jenkins
Issue Type: Bug
Components: sbt
Affects Versions: current
Environment: awt.nativeDoubleBuffering true
awt.toolkit apple.awt.CToolkit
executable-war /Users/dwalend/bin/jenkins.war
file.encoding MacRoman
file.encoding.pkg sun.io
file.separator /
ftp.nonProxyHosts local|*.local|169.254/16|*.169.254/16
gopherProxySet false
http.nonProxyHosts local|*.local|169.254/16|*.169.254/16
hudson.diyChunking true
java.awt.graphicsenv apple.awt.CGraphicsEnvironment
java.awt.headless true
java.awt.printerjob apple.awt.CPrinterJob
java.class.path /Users/dwalend/bin/jenkins.war
java.class.version 50.0
java.endorsed.dirs /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed
java.ext.dirs /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
java.home /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.io.tmpdir /var/folders/bd/935mn63j479fnh3c7yv0v_9c0000gn/T/
java.library.path .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_29-b11-402-11D50d
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Apple Inc.
java.vendor.url http://www.apple.com/
java.vendor.url.bug http://bugreport.apple.com/
java.version 1.6.0_29
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Apple Inc.
java.vm.version 20.4-b02-402
jna.platform.library.path /usr/lib:/usr/lib
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
mrj.build 11D50d
mrj.version 1070.1.6.0_29-402
os.arch x86_64
os.name Mac OS X
os.version 10.7.3
path.separator :
socksNonProxyHosts local|*.local|169.254/16|*.169.254/16
sun.arch.data.model 64
sun.boot.class.path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar
sun.boot.library.path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries
sun.cpu.endian little
sun.cpu.isalist
sun.io.unicode.encoding UnicodeLittle
sun.java.command /Users/dwalend/bin/jenkins.war
sun.java.launcher SUN_STANDARD
sun.jnu.encoding MacRoman
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country US
user.dir /Users/dwalend/projects/ogregev
user.home /Users/dwalend
user.language en
user.name dwalend
user.timezone America/New_York
Reporter: David Walend
Assignee: uzilan
Priority: Minor


I'm running jenkins via java -jar jenkins.war in bash on a Mac.

My project is really just doing sbt compile.

If I have jenkins running in the foreground, everything works fine. But if I run it in the background (to do other things in the same shell), jenkins becomes unresponsive as soon as I ask it to build something. If I move the process to the foreground again, suddenly it builds everything I asked it to.

It's pretty minor as bugs go, but it is odd enough I felt I should report it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


sjtikka@gmail.com (JIRA)

unread,
May 20, 2012, 11:03:24 AM5/20/12
to jenkinsc...@googlegroups.com

[ https://issues.jenkins-ci.org/browse/JENKINS-13407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162979#comment-162979 ]

Sami Tikka commented on JENKINS-13407:
--------------------------------------

The next time Jenkins hangs like that, could you run {{sample}} on it? It would tell us what Jenkins was trying to do when it hanged.

> Jenkins does not run sbt builds when the process is in the background
> ---------------------------------------------------------------------

sjtikka@gmail.com (JIRA)

unread,
Feb 2, 2013, 8:02:53 PM2/2/13
to jenkinsc...@googlegroups.com
Sami Tikka commented on Bug JENKINS-13407

My guess is Jenkins is passing and inherited stdin to the build script, which then attempts to read it. Hmm... I might be tempted to take a look at this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.

sjtikka@gmail.com (JIRA)

unread,
Feb 6, 2013, 5:00:53 PM2/6/13
to jenkinsc...@googlegroups.com
Sami Tikka commented on Bug JENKINS-13407

I could not reproduce the problem. Could you tell me the exact command line you use to run Jenkins and the exact command line you use to build in Jenkins job?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.

stummb@java.net (JIRA)

unread,
Jul 5, 2013, 4:48:58 PM7/5/13
to jenkinsc...@googlegroups.com
stummb commented on Bug JENKINS-13407

I also have this problem.

Jenkins Commandline:
java -jar jenkins.war > jenkins.log 2>&1 &

SBT-Command: "test"

SBT-Version 0.12.4
Ubuntu 12.10
Jenkins 1.521

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
Reply all
Reply to author
Forward
0 new messages