Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13407

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

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • sbt-plugin
    • None

      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.

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

          Sami Tikka added a comment -

          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.

          Sami Tikka added a comment - 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.

          Sami Tikka added a comment -

          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.

          Sami Tikka added a comment - 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.

          Sami Tikka added a comment -

          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?

          Sami Tikka added a comment - 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?

          stummb added a comment -

          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

          stummb added a comment - 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

            uzilan uzilan
            dwalend David Walend
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: