我有一個用Jenkins創建的簡單矩陣項目。Shell腳本沒有記錄在矩陣項目中
我想執行一個簡單的shell腳本。在此之前,我運行svn checkout來獲取源代碼。我嘗試了很多方法來執行shell腳本,但都不起作用。
這意味着我看不到shell腳本的輸出。
以下幾行我曾試圖執行:
_make.sh
./_make.sh
bash -ex _make.sh
#!/bin/sh
./_make.sh
我手動上755 chmod'ed文件(_make.sh),但它沒有什麼區別。
感謝您的任何建議。
編輯:
我總是得到以下的輸出:
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/ABC/workspace
Triggering all
all completed with result FAILURE
Finished: FAILURE
_make.sh:
#!/bin/bash
echo "A" > test
g++ -c src/*.cc src/*.h -pthread -D_REENTRANT -I"gtkmm/include/gtkmm-2.4" -I"gtkmm/lib/gtkmm-2.4/include" -I"gtkmm/include/giomm-2.4" -I"gtkmm/lib/giomm-2.4/include" -I"gtkmm/include/pangomm-1.4" -I"gtkmm/lib/pangomm-1.4/include" -I"gtkmm/include/gtk-2.0" -I"gtkmm/include/gtk-unix-print-2.0" -I"gtkmm/include/atkmm-1.6" -I"gtkmm/include/gdkmm-2.4" -I"gtkmm/lib/gdkmm-2.4/include" -I"gtkmm/include/glibmm-2.4" -I"gtkmm/lib/glibmm-2.4/include" -I"gtkmm/include/glib-2.0" -I"gtkmm/lib/glib-2.0/include" -I"gtkmm/include/sigc++-2.0" -I"gtkmm/lib/sigc++-2.0/include" -I"gtkmm/include/cairomm-1.0" -I"gtkmm/lib/cairomm-1.0/include" -I"gtkmm/include/pango-1.0" -I"gtkmm/include/cairo" -I"gtkmm/include/pixman-1" -I"gtkmm/include/freetype2" -I"gtkmm/include/directfb" -I"gtkmm/include/libpng12" -I"gtkmm/lib/gtk-2.0/include" -I"gtkmm/include/atk-1.0" -I"gtkmm/include/gio-unix-2.0" -I"gtkmm/include/fontconfig" -I"gtkmm/include" -D FREEGLUT_STATIC -I"freeglut/include/GL" -I"freeglut/include" -I"freeglut/include" -I"DevIL/include" -I"mysql/include" -I"lib3ds" -mconsole
g++ *.o -o test.exe -pthread -L"gtkmm/lib"-lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-x11-2.0 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -L"freeglut/lib" -L"DevIL/lib" -L"lib3ds/lib3ds/.libs" -L"gtkglextmm/gtkglext/gtkmm/gl/.libs" -L"gtkglextmm/gdkglext/gdkmm/gl/.libs" -L"mysql/lib/opt" -l3ds -lgtkglextmm-win32-1.2-0 -lgdkglextmm-win32-1.2-0 -lmysql -lfreeglut -lDevIL -lilut -lfreeglut_static -lopengl32 -lwinmm -lgdi32 -lws2_32 -Wl,--subsystem,windows -mconsole
1)什麼是控制檯輸出? 2)您是否已手動檢查文件是否在工作區中 - 矩陣版本具有複雜的目錄結構。點擊矩陣中的球,然後點擊「工作區」,你會看到你的文件嗎? – 2012-02-02 17:04:20
輸出見上面,是的文件在正確的地方在工作區。 – CSchulz 2012-02-03 09:44:20