script run through jenkins user gets killed Announcing the arrival of Valued Associate #679:...

How many morphisms from 1 to 1+1 can there be?

GDP with Intermediate Production

Constant factor of an array

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

What are the main differences between the original Stargate SG-1 and the Final Cut edition?

What order were files/directories output in dir?

Resize vertical bars (absolute-value symbols)

Monty Hall Problem-Probability Paradox

Tips to organize LaTeX presentations for a semester

Is there public access to the Meteor Crater in Arizona?

Asymptotics question

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

malloc in main() or malloc in another function: allocating memory for a struct and its members

How to ask rejected full-time candidates to apply to teach individual courses?

Why is it faster to reheat something than it is to cook it?

What would you call this weird metallic apparatus that allows you to lift people?

Did pre-Columbian Americans know the spherical shape of the Earth?

Why BitLocker does not use RSA

Is there any word for a place full of confusion?

I can't produce songs

How do living politicians protect their readily obtainable signatures from misuse?

How much damage would a cupful of neutron star matter do to the Earth?

A proverb that is used to imply that you have unexpectedly faced a big problem

What does 丫 mean? 丫是什么意思?



script run through jenkins user gets killed



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Jenkins CI - Cannot allocate memoryrvm for Jenkins under Tomcat 6Tell Jenkins to run a specific project on a particular slave nodeHow can I get Jenkins to execute a script that it pulled from Git?bulk size text parameters in jenkins report errorIs rbash secure if user login and ssh passwords are disabled?Why is Jenkins making temp files that are binaries?Apache upload scanner not working as intendedConfusion with Jenkins Docker Plugin and Jenkins Docker Slavesdockerized jenkins failed building dockerfile work dir issue





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















In our jenkins build configuration we have the following shell commands (Execute shell) as the last step of our build process.



echo "$USER"
echo "Script executed from: ${PWD}"
git submodule update --init --recursive
if [ -f composer.json ]; then
/usr/local/bin/composer install
fi
sed -i 's/phpunit --bootstrap//usr/local/bin/phpunit --bootstrap/g' runtest
./runtest --config unittest/configure.conf --coverage /var/lib/jenkins/workspace/coverage/


Everything used to work perfectly till our hard drive gets full and jenkins stopped building. After we cleaned the hard drive and tried building through jenkins again, the last step (Execute shell) failed to build with the following error:



[project] $ /bin/sh -xe /tmp/hudson815776538860444797.sh
+ echo jenkins
jenkins
+ echo 'Script executed from: /var/lib/jenkins/workspace/project'
Script executed from: /var/lib/jenkins/workspace/project
+ git submodule update --init --recursive
error: git-submodule died of signal 9
Build step 'Execute shell' marked build as failure


We tried running the shell commands as root and everything works as expected. However, once we run it as jenkins user, the process gets killed within few seconds.



[root@localhost project]# su -c "/bin/bash -x /tmp/hudson5288327457846724302.sh" -s /bin/sh jenkins
+ echo jenkins
jenkins
+ echo 'Script executed from: /var/lib/jenkins/workspace/project'
Script executed from: /var/lib/jenkins/workspace/project
+ '[' -f composer.json ']'
+ /usr/local/bin/composer install
Killed


I checked the system logs /var/log/messages but didnt find any clue. What can cause the issue and how we may troubleshoot this?









share





























    0















    In our jenkins build configuration we have the following shell commands (Execute shell) as the last step of our build process.



    echo "$USER"
    echo "Script executed from: ${PWD}"
    git submodule update --init --recursive
    if [ -f composer.json ]; then
    /usr/local/bin/composer install
    fi
    sed -i 's/phpunit --bootstrap//usr/local/bin/phpunit --bootstrap/g' runtest
    ./runtest --config unittest/configure.conf --coverage /var/lib/jenkins/workspace/coverage/


    Everything used to work perfectly till our hard drive gets full and jenkins stopped building. After we cleaned the hard drive and tried building through jenkins again, the last step (Execute shell) failed to build with the following error:



    [project] $ /bin/sh -xe /tmp/hudson815776538860444797.sh
    + echo jenkins
    jenkins
    + echo 'Script executed from: /var/lib/jenkins/workspace/project'
    Script executed from: /var/lib/jenkins/workspace/project
    + git submodule update --init --recursive
    error: git-submodule died of signal 9
    Build step 'Execute shell' marked build as failure


    We tried running the shell commands as root and everything works as expected. However, once we run it as jenkins user, the process gets killed within few seconds.



    [root@localhost project]# su -c "/bin/bash -x /tmp/hudson5288327457846724302.sh" -s /bin/sh jenkins
    + echo jenkins
    jenkins
    + echo 'Script executed from: /var/lib/jenkins/workspace/project'
    Script executed from: /var/lib/jenkins/workspace/project
    + '[' -f composer.json ']'
    + /usr/local/bin/composer install
    Killed


    I checked the system logs /var/log/messages but didnt find any clue. What can cause the issue and how we may troubleshoot this?









    share

























      0












      0








      0








      In our jenkins build configuration we have the following shell commands (Execute shell) as the last step of our build process.



      echo "$USER"
      echo "Script executed from: ${PWD}"
      git submodule update --init --recursive
      if [ -f composer.json ]; then
      /usr/local/bin/composer install
      fi
      sed -i 's/phpunit --bootstrap//usr/local/bin/phpunit --bootstrap/g' runtest
      ./runtest --config unittest/configure.conf --coverage /var/lib/jenkins/workspace/coverage/


      Everything used to work perfectly till our hard drive gets full and jenkins stopped building. After we cleaned the hard drive and tried building through jenkins again, the last step (Execute shell) failed to build with the following error:



      [project] $ /bin/sh -xe /tmp/hudson815776538860444797.sh
      + echo jenkins
      jenkins
      + echo 'Script executed from: /var/lib/jenkins/workspace/project'
      Script executed from: /var/lib/jenkins/workspace/project
      + git submodule update --init --recursive
      error: git-submodule died of signal 9
      Build step 'Execute shell' marked build as failure


      We tried running the shell commands as root and everything works as expected. However, once we run it as jenkins user, the process gets killed within few seconds.



      [root@localhost project]# su -c "/bin/bash -x /tmp/hudson5288327457846724302.sh" -s /bin/sh jenkins
      + echo jenkins
      jenkins
      + echo 'Script executed from: /var/lib/jenkins/workspace/project'
      Script executed from: /var/lib/jenkins/workspace/project
      + '[' -f composer.json ']'
      + /usr/local/bin/composer install
      Killed


      I checked the system logs /var/log/messages but didnt find any clue. What can cause the issue and how we may troubleshoot this?









      share














      In our jenkins build configuration we have the following shell commands (Execute shell) as the last step of our build process.



      echo "$USER"
      echo "Script executed from: ${PWD}"
      git submodule update --init --recursive
      if [ -f composer.json ]; then
      /usr/local/bin/composer install
      fi
      sed -i 's/phpunit --bootstrap//usr/local/bin/phpunit --bootstrap/g' runtest
      ./runtest --config unittest/configure.conf --coverage /var/lib/jenkins/workspace/coverage/


      Everything used to work perfectly till our hard drive gets full and jenkins stopped building. After we cleaned the hard drive and tried building through jenkins again, the last step (Execute shell) failed to build with the following error:



      [project] $ /bin/sh -xe /tmp/hudson815776538860444797.sh
      + echo jenkins
      jenkins
      + echo 'Script executed from: /var/lib/jenkins/workspace/project'
      Script executed from: /var/lib/jenkins/workspace/project
      + git submodule update --init --recursive
      error: git-submodule died of signal 9
      Build step 'Execute shell' marked build as failure


      We tried running the shell commands as root and everything works as expected. However, once we run it as jenkins user, the process gets killed within few seconds.



      [root@localhost project]# su -c "/bin/bash -x /tmp/hudson5288327457846724302.sh" -s /bin/sh jenkins
      + echo jenkins
      jenkins
      + echo 'Script executed from: /var/lib/jenkins/workspace/project'
      Script executed from: /var/lib/jenkins/workspace/project
      + '[' -f composer.json ']'
      + /usr/local/bin/composer install
      Killed


      I checked the system logs /var/log/messages but didnt find any clue. What can cause the issue and how we may troubleshoot this?







      linux bash shell-scripting jenkins





      share












      share










      share



      share










      asked 6 mins ago









      user3360140user3360140

      16639




      16639






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963945%2fscript-run-through-jenkins-user-gets-killed%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963945%2fscript-run-through-jenkins-user-gets-killed%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...