Closed jmalfait closed 7 years ago
You're using the ABLUnit task from Progress Software, not the one from PCT. Please either report directly to Progress, or use the PCT task. In any case, you should include the version details and log output.
if i run the [PCTVersion] PCT Version 1.1-pre - Build 194
tfs server log gives me the following.
1 2017-03-22T12:36:54.0926214Z Executing the powershell script: c:\agoria\tfs_agent\tasks\Ant\1.0.33\ant.ps1
2 2017-03-22T12:36:54.4926429Z ##[debug]Option to enable code coverage was not selected and is being skipped.
3 2017-03-22T12:36:54.5236431Z ##[debug]Running Ant...
4 2017-03-22T12:36:54.9766712Z Buildfile: C:\agoria\build\1\s\XYTool\build.xml
5 2017-03-22T12:36:55.7237134Z [PCTVersion] PCT Version 1.1-pre - Build 194
6 2017-03-22T12:36:55.7247150Z build:
7 2017-03-22T12:36:55.8667216Z [PCTCompile] PCTCompile - Progress Code Compiler
8 2017-03-22T12:36:58.5488771Z [PCTCompile] 21 file(s) compiled
9 2017-03-22T12:36:58.6318808Z BUILD SUCCESSFUL
10 2017-03-22T12:36:58.6328792Z Total time: 3 seconds
But i don't realy get what u mean by 'i'm not using the ABLUnit task from PCT' Isn't this from the PCT ? https://github.com/Riverside-Software/pct/blob/master/tests/ABLUnit/test1/build.xml
Because in your initial message (it has been edited since), there was a taskdef
node pointing to ABLUnit task in %DLC% directory.
Could you use include the output of ant -v
to double check if the target is executed ?
1 2017-03-22T12:58:44.3276527Z Checking if artifacts directory exists: C:\agoria\build\1\a
2 2017-03-22T12:58:44.3286533Z Deleting artifacts directory.
3 2017-03-22T12:58:44.3386535Z Creating artifacts directory.
4 2017-03-22T12:58:44.3396600Z Checking if test results directory exists: C:\agoria\build\1\TestResults
5 2017-03-22T12:58:44.3406539Z Deleting test results directory.
6 2017-03-22T12:58:44.3416578Z Creating test results directory.
7 2017-03-22T12:58:44.3776560Z Starting: Get sources
8 2017-03-22T12:58:44.3916657Z Entering TfvcSourceProvider.PrepareRepositoryAsync
9 2017-03-22T12:58:44.3916657Z localPath=C:\agoria\build\1\s
10 2017-03-22T12:58:44.3916657Z clean=False
11 2017-03-22T12:58:44.3926595Z sourceVersion=1450
12 2017-03-22T12:58:44.3926595Z mappingJson={"mappings":[{"serverPath":"$/Agoria","mappingType":"map","localPath":"\\"},{"serverPath":"$/Agoria/Drops","mappingType":"cloak","localPath":"\\"}]}
13 2017-03-22T12:58:44.3946591Z Syncing repository: Agoria (TFVC)
14 2017-03-22T12:58:44.3956638Z workspaceName=ws_1_32
15 2017-03-22T12:58:46.0407522Z Workspace Name: ws_1_32;Build\53b9ca85-8bb4-4781-82cf-d3b3ce826ac0
16 2017-03-22T12:58:46.0967539Z tf get /version:1450
17 2017-03-22T12:58:46.5337832Z Done syncing repository Agoria to version 1450 (workspace version C1450)
18 2017-03-22T12:58:46.5337832Z Leaving TfvcSourceProvider.PrepareRepositoryAsync
19 2017-03-22T12:58:46.6957975Z Running tasks
20 2017-03-22T12:58:46.7367912Z Starting task: Ant build -v $/Agoria/XYTool/build.xml
21 2017-03-22T12:58:46.8287964Z Executing the powershell script: c:\agoria\tfs_agent\tasks\Ant\1.0.33\ant.ps1
22 2017-03-22T12:58:47.2068191Z ##[debug]Option to enable code coverage was not selected and is being skipped.
23 2017-03-22T12:58:47.2078262Z ##[debug]Running Ant...
24 2017-03-22T12:58:47.6638446Z Apache Ant(TM) version 1.10.1 compiled on February 2 2017
25 2017-03-22T12:58:47.6638446Z Buildfile: C:\agoria\build\1\s\XYTool\build.xml
26 2017-03-22T12:58:47.6958460Z Detected Java version: 1.8 in: C:\Progra~1\Java\jdk1.8.0_121\jre
27 2017-03-22T12:58:47.6968463Z Detected OS: Windows Server 2012 R2
28 2017-03-22T12:58:47.7698495Z parsing buildfile C:\agoria\build\1\s\XYTool\build.xml with URI = file:/C:/agoria/build/1/s/XYTool/build.xml
29 2017-03-22T12:58:47.7828511Z Project base dir set to: C:\agoria\build\1\s\XYTool
30 2017-03-22T12:58:48.0328658Z parsing buildfile jar:file:/C:/agoria/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/agoria/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
31 2017-03-22T12:58:48.0958698Z [property] Loading Environment env.
32 2017-03-22T12:58:48.2018751Z [PCTVersion] PCT Version 1.1-pre - Build 194
33 2017-03-22T12:58:48.2058756Z Build sequence for target(s) `build' is [build]
34 2017-03-22T12:58:48.2068754Z Complete build sequence is [build, test, ]
35 2017-03-22T12:58:48.2078748Z build:
36 2017-03-22T12:58:48.2128760Z [mkdir] Skipping C:\agoria\build\1\s\XYTool\agoBuild because it already exists.
37 2017-03-22T12:58:48.2618799Z [PCTCompile] PCTCompile - Progress Code Compiler
38 2017-03-22T12:58:48.2618799Z [PCTCompile] OpenEdge version found : OpenEdge Release 11.5.1 as of Wed May 6 19:01:46 EDT 2015
39 2017-03-22T12:58:48.2628788Z [PCTCompile] Using object : com.phenix.pct.ProgressV114
40 2017-03-22T12:58:48.3238820Z [PCTCompile] cpstream is not defined. You may have problems if file names have characters outside of ASCII range. You really should define it !
41 2017-03-22T12:58:48.3958885Z [PCTCompile] Current OS is Windows Server 2012 R2
42 2017-03-22T12:58:48.4008893Z [PCTCompile] Setting environment variable: DLC=c:\agoria\dlc
43 2017-03-22T12:58:48.4018876Z [PCTCompile] Executing 'c:\agoria\dlc\bin\_progres.exe' with arguments:
44 2017-03-22T12:58:48.4058883Z [PCTCompile] '-b'
45 2017-03-22T12:58:48.4058883Z [PCTCompile] '-q'
46 2017-03-22T12:58:48.4068873Z [PCTCompile] '-param'
47 2017-03-22T12:58:48.4078871Z [PCTCompile] 'C:\Users\ADMINI~1\AppData\Local\Temp\3\pct_params15600.txt'
48 2017-03-22T12:58:48.4108858Z [PCTCompile] '-p'
49 2017-03-22T12:58:48.4118867Z [PCTCompile] 'C:\Users\ADMINI~1\AppData\Local\Temp\3\pctinit21431.p'
50 2017-03-22T12:58:48.4118867Z [PCTCompile]
51 2017-03-22T12:58:48.4128877Z [PCTCompile] The ' characters around the executable and arguments are
52 2017-03-22T12:58:48.4138859Z [PCTCompile] not part of the command.
53 2017-03-22T12:58:49.9259725Z [PCTCompile] 21 file(s) compiled
54 2017-03-22T12:58:49.9759776Z BUILD SUCCESSFUL
55 2017-03-22T12:58:49.9769772Z Total time: 2 seconds
56 2017-03-22T12:58:50.0369855Z Finishing task: Ant
This is the output i get now, i dont see any specific task axecuting the ablUnit parts? am i missing something?
You don't execute the 'tests' target, double-check the command line include the target name And you're using an old version of PCT, you should upgrade it.
You were right, i didn't execute the 'tests' target. I do now, but i still don't get the results.xml file. I do get a build failed, maybe results.xml doesn't get generated on build failed?
2017-03-22T13:15:17.2925218Z ##[error]BUILD FAILED
2017-03-22T13:15:17.2985225Z ##[error]C:\agoria\build\1\s\XYTool\build.xml:21: C:\agoria\build\1\s\XYTool\agoBuild\result\results.xml not found
There's probably something in the log before those lines.
ant -v
may also help
Yes, i had to include the propath option in my
When setting up PCT and running the ABLUnit task we don't recieve a results.xml file Below is the full build.xml file
Ant script gets executed from our TFS server. Thx in advance.