[JIRA] (JENKINS-51060) Environment variables are not passed to cmake when

2018-05-03 Thread fifteenknots...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Weber commented on  JENKINS-51060  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Environment variables are not passed to cmake when   
 

  
 
 
 
 

 
 

Also, if CMake is installed in /usr/local/bin (and it works in sh step) the CMake builder plugin apparently does not find cmake binary:
 The plugin directly invokes cmake, without any shell. So it will see only the environment variables of the jenkins master process or agent process. My guess is that your sh step adds /usr/local/bin to $PATH. On linux, processes started as a system process during boot inherit fewer environment variables than the processes started by a user`s login shell. AFAIK, a recent SUSE or RHEL does not have /usr/local/bin in $PATH by default. Could you check the Jenkins System Information page for the PATH variable?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-51060) Environment variables are not passed to cmake when

2018-05-03 Thread fifteenknots...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Weber started work on  JENKINS-51060  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Martin Weber  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-51060) Environment variables are not passed to cmake when

2018-05-01 Thread janne.ron...@iki.fi (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Janne Rönkkö updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51060  
 
 
  Environment variables are not passed to cmake when   
 

  
 
 
 
 

 
Change By: 
 Janne Rönkkö  
 

  
 
 
 
 

 
 CMake plugin commands do not seem to pass environment to cmake command.{{withEnv(['CC=clang', 'CXX=clang++' \{}}   cmakeBuild( {{    buildDir: 'build/debug',}} {{    buildType: 'Debug',}} {{    generator: 'Ninja',}} {{    installation: 'InSearchPath',}} {{  )}} } {{[debug] $ docker exec --workdir /var/lib/jenkins/workspace/job/build/debug 67363250bd775405c7cdf92b70a6d7a70dc136a48c93e350fea9cd12ba50d432 cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /var/lib/jenkins/workspace/job}} {{-- The C compiler identification is GNU 7.2.0}} {{-- The CXX compiler identification is GNU 7.2.0}} {{-- Check for working C compiler: /usr/sbin/cc}} {{-- Check for working C compiler: /usr/sbin/cc – works}} {{-- Detecting C compiler ABI info}} {{-- Detecting C compiler ABI info - done}} {{-- Detecting C compile features}} {{-- Detecting C compile features - done}} {{-- Check for working CXX compiler: /usr/sbin/c++}} {{-- Check for working CXX compiler: /usr/sbin/c++ – works}} {{-- Detecting CXX compiler ABI info}} {{-- Detecting CXX compiler ABI info - done}} {{-- Detecting CXX compile features}} {{-- Detecting CXX compile features - done}} Also, if CMake is installed in /usr/local/bin (and it works in sh step) the CMake builder plugin apparently does not find cmake binary:{{[debug] $ cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /Users/jenkins/workspace/ Qubit/qubit-review  job }} [|https://jenkins.intra.vincit.fi/blue/organizations/jenkins/Qubit%2Fqubit-review/detail/qubit-review/165/pipeline/8#step-35-log-2] {{ Cannot run program "cmake" (in directory "/Users/jenkins/workspace/ Qubit job / qubit-review/ build/debug"): error=2, No such file or directory }} In sh step _which cmake_ prints _/usr/local/bin/cmake_ and you can run cmake succesfully  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 

[JIRA] (JENKINS-51060) Environment variables are not passed to cmake when

2018-05-01 Thread janne.ron...@iki.fi (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Janne Rönkkö updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51060  
 
 
  Environment variables are not passed to cmake when   
 

  
 
 
 
 

 
Change By: 
 Janne Rönkkö  
 

  
 
 
 
 

 
 CMake plugin commands do not seem to pass environment to cmake command.{{withEnv(['CC=clang', 'CXX=clang++' \{}}   cmakeBuild( {{    buildDir: 'build/debug',}} {{    buildType: 'Debug',}} {{    generator: 'Ninja',}} {{    installation: 'InSearchPath',}} {{  )}}} {{[debug] $ docker exec --workdir /var/lib/jenkins/workspace/job/build/debug 67363250bd775405c7cdf92b70a6d7a70dc136a48c93e350fea9cd12ba50d432 cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /var/lib/jenkins/workspace/job}}{{-- The C compiler identification is GNU 7.2.0}}{{-- The CXX compiler identification is GNU 7.2.0}}{{-- Check for working C compiler: /usr/sbin/cc}}{{-- Check for working C compiler: /usr/sbin/cc  --  –  works}}{{-- Detecting C compiler ABI info}}{{-- Detecting C compiler ABI info - done}}{{-- Detecting C compile features}}{{-- Detecting C compile features - done}}{{-- Check for working CXX compiler: /usr/sbin/c++}}{{-- Check for working CXX compiler: /usr/sbin/c++  --  –  works}}{{-- Detecting CXX compiler ABI info}}{{-- Detecting CXX compiler ABI info - done}}{{-- Detecting CXX compile features}}{{-- Detecting CXX compile features - done}} Also, if CMake is installed in /usr/local/bin (and it works in sh step) the CMake builder plugin apparently does not find cmake binary:{{[ https://jenkins.intra.vincit.fi/blue/organizations/jenkins/Qubit%2Fqubit-review/detail/qubit-review/165/pipeline/8#step-35-log-1][ debug] $ cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /Users/jenkins/workspace/ job Qubit/qubit-review  }} {{ [ | https://jenkins.intra.vincit.fi/blue/organizations/jenkins/Qubit%2Fqubit-review/detail/qubit-review/165/pipeline/8#step-35-log-2]Cannot run program "cmake" (in directory "/Users/jenkins/workspace/ job Qubit / qubit-review/ build/debug"): error=2, No such file or directory }} In sh step _which cmake_ prints _/usr/local/bin/cmake_ and you can run cmake succesfully  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

[JIRA] (JENKINS-51060) Environment variables are not passed to cmake when

2018-05-01 Thread janne.ron...@iki.fi (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Janne Rönkkö updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51060  
 
 
  Environment variables are not passed to cmake when   
 

  
 
 
 
 

 
Change By: 
 Janne Rönkkö  
 

  
 
 
 
 

 
 CMake plugin commands do not seem to pass environment to cmake command.{{withEnv(['CC=clang', 'CXX=clang++' \{}} {{   cmakeBuild( }} {{    buildDir: 'build/debug',}}{{    buildType: 'Debug',}}{{    generator: 'Ninja',}}{{    installation: 'InSearchPath',}}{{  )}} {{  } }}  ..CMake uses cc and c++ as compiler:   {{[debug] $ docker exec --workdir /var/lib/jenkins/workspace/job/build/debug 67363250bd775405c7cdf92b70a6d7a70dc136a48c93e350fea9cd12ba50d432 cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /var/lib/jenkins/workspace/job}}{{  – --  The C compiler identification is GNU 7.2.0}}{{  – --  The CXX compiler identification is GNU 7.2.0}}{{  – --  Check for working C compiler: /usr/sbin/cc}}{{  – --  Check for working C compiler: /usr/sbin/cc  –  --  works}}{{  – --  Detecting C compiler ABI info}}{{  – --  Detecting C compiler ABI info - done}}{{  – --  Detecting C compile features}}{{  – --  Detecting C compile features - done}}{{  – --  Check for working CXX compiler: /usr/sbin/c++}}{{  – --  Check for working CXX compiler: /usr/sbin/c++  –  --  works}}{{  – --  Detecting CXX compiler ABI info}}{{  – --  Detecting CXX compiler ABI info - done}}{{  – --  Detecting CXX compile features}}{{  – --  Detecting CXX compile features - done}} Also, if CMake is installed in /usr/local/bin (and it works in sh step) the CMake builder plugin apparently does not find cmake binary:{{[ | https://jenkins.intra.vincit.fi/blue/organizations/jenkins/Qubit%2Fqubit-review/detail/qubit-review/165/pipeline/8#step-35-log-1][debug] $ cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /Users/jenkins/workspace/job}}{{[ | https://jenkins.intra.vincit.fi/blue/organizations/jenkins/Qubit%2Fqubit-review/detail/qubit-review/165/pipeline/8#step-35-log-2]Cannot run program "cmake" (in directory "/Users/jenkins/workspace/job/build/debug"): error=2, No such file or directory}}In sh step _which cmake_ prints _/usr/local/bin/cmake_ and you can run cmake succesfully  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

 

[JIRA] (JENKINS-51060) Environment variables are not passed to cmake when

2018-05-01 Thread janne.ron...@iki.fi (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Janne Rönkkö created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51060  
 
 
  Environment variables are not passed to cmake when   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Martin Weber  
 
 
Components: 
 cmakebuilder-plugin  
 
 
Created: 
 2018-05-02 05:37  
 
 
Environment: 
 Jenkins ver. 2.107.2  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Janne Rönkkö  
 

  
 
 
 
 

 
 CMake plugin commands do not seem to pass environment to cmake command. withEnv(['CC=clang', 'CXX=clang++' {   cmakeBuild(     buildDir: 'build/debug',     buildType: 'Debug',     generator: 'Ninja',     installation: 'InSearchPath',   ) {{ }}} ..CMake uses cc and c++ as compiler: [debug] $ docker exec --workdir /var/lib/jenkins/workspace/job/build/debug 67363250bd775405c7cdf92b70a6d7a70dc136a48c93e350fea9cd12ba50d432 cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug /var/lib/jenkins/workspace/job {{ – The C compiler identification is GNU 7.2.0}} {{ – The CXX compiler identification is GNU 7.2.0}} {{ – Check for working C compiler: /usr/sbin/cc}} {{ – Check for working C compiler: /usr/sbin/cc – works}} {{ – Detecting C compiler ABI info}} {{ – Detecting C compiler ABI info - done}} {{ – Detecting C compile features}} {{ – Detecting C compile features - done}} {{ – Check for working CXX compiler: /usr/sbin/c++}} {{ – Check for working CXX compiler: /usr/sbin/c++ – works}} {{ – Detecting CXX compiler ABI info}} {{ – Detecting CXX compiler ABI info - done}} {{ – Detecting CXX compile features}} {{ – Detecting CXX compile features - done}}   Also, if CMake is installed in /usr/local/bin (and it works in sh step) the CMake builder plugin apparently does not find cmake binary: https://jenkins.intra.vincit.fi/blue/organizations/jenkins/Qubit%2Fqubit-review/detail/qubit-review/165/pipeline/8#step-35-log-1[debug] $ cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug