yu xiaohang

Greenhorn
+ Follow
since Sep 15, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by yu xiaohang

hello

i wrote ant script for check my version number make sure that it won't be conflict :



A true or false Should have been passed to <fail> tag but i found that <svnExists> can only return false wether "${ci.prod.id}_V${prod.version}_REL" exists or not.

i wrote a test script below:



but wether item exists in subversion repository or not ${testprop} will give false value.

it could be a hudson's bug? or SvnAnt's bug?

someone can help me?

10 years ago

Peter Johnson wrote:It would appear that your script commands are terminated with a CR-FL char combination. Linux uses only LF, and the Cr shows up as a "?" at the end of the line. This might be a problem with the ssh plugin you are using for Hudson.

I am guessing that Hudson is running on a Windows box. If so, Therefore you might be better off running a bat file from Hudson and placing the ssh commands into the bat file.

Or are you using a browser on Windows? It would help if you described your setup.



thank you peter ,Hudson deployed on linux but still can't find problem ,now i write scripts in my build.xml it can be executed by ant
10 years ago

Peter Johnson wrote:If you run the pre build script command manually using ssh on the build slave, while logged in as the same user as Hudson is, then what happens?



i can run these cmd in my secureCRT client but not in hudson ssh plugin

yesterday i tried another command "ls >>txt" it can be executed,give messages below:

=======================
Started by user hudson
[SSH] executing pre build script:
cd /usr
ls >> /usr/txt

[SSH] exit-status: 0
[SSH] executing post build script:

[DEBUG] Skipping watched dependency update; build not configured with trigger: ssh test #9
Finished: SUCCESS
=======================

Strangly, i checked this "txt" file in /usr/, it was named "txt?" not "txt", i am confused again
10 years ago
hello everybody

i am confused by this problem for few days:

I installed SSH plugin and SCP plugin on hudson-ci system, so in the config page i can find config section then i enable ssh function:

======================
just like picture in attachement
======================

but my ssh script can not run on the remote server

then give this log:

===========================
Started by user hudson
[SSH] executing pre build script:
cp /usr/local/11/10/earlybird/upld /usr/local/11/10/earlybird/../upld_bk -r -f

[SSH] exit-status: 1
[SSH] executing post build script:

[DEBUG] Skipping watched dependency update; build not configured with trigger: ssh test #4
Finished: SUCCESS
===========================

i dont know why i want my script executed during build,please help me
10 years ago
hello everybody i am using ant in my project ,and i found it is difficult to copy files to different directories at one time ,but sometimes i must excute an operation like making patch to current webapps:

1. i have two dirs A and B, then i have some *.class patch files in dir A;
2. next i unzip war file of current version webapp into dir B;
3. a file named “change.list” was placed in dir A ,*.class files' names and address in the app‘s directory are described in following fomate:

CommFlowCancelListenerII.class,com/lnsoft/ess/common/
CommonOperateII.class,com/lnsoft/ess/common/

4. i want ant script read change.list file then copy those *.class files from dir A to dir B with the right address described in the change.list file so my

5. i rezip dir B to a .war file, at last this war package could be updated automatically when i run my ant script.

i have tried it for several days but i still have no result,any one can help me? just give me some advise, please....
10 years ago