end
private
- def get_uselatest( project_name, dist_name )
+ def get_latest_commit( project_name, dist_name )
nPrj = @parent_server.prjmgr.get_project(project_name, dist_name)
result = nil
if nPrj.type.eql? "GIT" then
--- /dev/null
+#PRE-EXEC
+echo "uselatest build "
+cd git01;tar xf b_v5err.tar.gz
+#EXEC
+../../build-cli build -N testb -d 127.0.0.1:2223 -o ubuntu-32 -U admin@user -w 1234 --rebuild --uselatest
+#POST-EXEC
+#EXPECT
+Info: Added new job
+Info: Initializing job...
+Info: Checking package version ...
+Info: Invoking a thread for building Job
+Info: New Job
+Info: Checking build dependency ...
+Info: Checking install dependency ...
+Info: Started to build this job...
+Info: JobBuilder
+Info: Downloding client is initializing...
+Info: Installing dependent packages...
+Info: * a
+Info: Wait for cache sync
+Info: Entering cache sync
+Info: Cache sync done
+Info: Downloading dependent source packages...
+Info: Make clean...
+Info: Make build...
+Info: Make install...
+Info: Generatiing pkginfo.manifest...
+Info: Zipping...
+Info: Creating package file ... b_0.0.4_ubuntu-32.zip
+Info: Checking reverse build dependency ...
+Info: Uploading ...
+Info: Upload succeeded. Sync local pkg-server again...
+Info: Snapshot:
+Info: Job is completed!
+Info: Job is FINISHED successfully!
+Info: Updating the source info for project "testb"
+