> git checkout -f 79d8e3a80aa4b114f72ad383f985028838f26ab0 > git rev-list 79d8e3a80aa4b114f72ad383f985028838f26ab0 # timeout=10 No emails were triggered. [workspace] $ scons -f /Users/Uma/.jenkins/jobs/Sample/workspace FATAL: command execution failed java.io.IOException: Cannot run program "scons" (in directory "/Users/Uma/.jenkins/jobs/Sample/workspace"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at hudson.Proc$LocalProc.<init>(Proc.java:243) at hudson.Proc$LocalProc.<init>(Proc.java:212) at hudson.Launcher$LocalLauncher.launch(Launcher.java:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381)
I can run “ scons under "/Users/Uma/.jenkins/jobs/Sample/workspace” with success.
What went wrong?
Thanks in advance.
Run 'which scons' and 'echo $PATH' then you will figure out what env varianles were loaded when running that job.
Cheers
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/Ofs-TV4s10Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5f3616e9-f013-41f7-a237-95421034ef24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,Thanks for the replyWhere can I set env variable for scons path?I have tried setting Jenkins -> Manage Jetkins -> configure System -> Global Properties -> Environment Variable :Name = PATHValue = /usr/local/bin/sconsIt does not seems to be work.regards
On Wed, Oct 12, 2016 at 6:15 PM, Victor Martinez <victormar...@gmail.com> wrote:
Hi,
Apparently scons is not part of your env variable path.
Run 'which scons' and 'echo $PATH' then you will figure out what env varianles were loaded when running that job.
Cheers
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/Ofs-TV4s10Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Building in workspace /Users/Shared/Jenkins/Home/workspace/TestProject > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/guma-005/JenkinsDemo.git # timeout=10 Fetching upstream changes from https://github.com/guma-005/JenkinsDemo.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/guma-005/JenkinsDemo.git +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 79d8e3a80aa4b114f72ad383f985028838f26ab0 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 79d8e3a80aa4b114f72ad383f985028838f26ab0 > git rev-list 79d8e3a80aa4b114f72ad383f985028838f26ab0 # timeout=10 Finished: SUCCESS
(Sorry I created another job with same code and everything)
Project Structure in Git :— SConstruct— Demo— Files.cpp— Files.hpp
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f9bacef9-916d-4dcc-81fc-d66ebf6031b6%40googlegroups.com.
scons -f /Users/Uma/.jenkins/jobs/Sample/workspace
scons -f $WORKSPACE
Hi Rachel,
Thanks for the help. It does work. Following is the console output.
[workspace] $ scons -f "scons -f /Users/Uma/.jenkins/jobs/Sample/workspace" scons: Reading SConscript files ... scons: warning: Ignoring missing SConscript 'scons -f /Users/Uma/.jenkins/Sample/New/workspace' File "/usr/local/bin/scons", line 199, in <module> scons: done reading SConscript files. scons: Building targets ... scons: `.' is up to date. scons: done building targets. Finished: SUCCESS
I intentionally made some mistakes in my code. What I was expecting is some error message while building with icons.
But What I was expecting is
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o Demo/Bed.o -c -Wall -ansi -pedantic -O2 -lX11 -std=c++11 -DSETTINGS_DEVELOPMENT -DUSER_UMA -I/opt/local/include -Iusr/include/boost/system -I/usr/include/boost -I/usr/include/boost/test -I/usr/include/boost/timer -I/opt/local/include/mariadb/mysql -I/opt/local/include/freetype2 -Irapidxml -Ilru_cache Demo/Bed.cpp
clang: warning: -lX11: 'linker' input unused
Demo/Bed.cpp:23:6: error: C++ requires a type specifier for all declarations
Bed::getBedSize(){
^
1 error generated.
scons: *** [Demo/Bed.o] Error 1
scons: building terminated because of errors.
I guess it is not executing the scons command in my workspace in which I have my SConstruct file.
Thanks
Uma
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e377974a-6013-4684-89a4-db92fee6378c%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c62b1723-2d74-4cf2-b290-e1f311d63c21%40googlegroups.com.