I've created a proof of concept blazor website on a VSTS repository. I wanted to setup a pipeline to build and test it but I've some issues.
In my visual studio, I've no troubles to build my solution, either by rebuilding the whole solution on Visual studio, either by running dotnet build my-sln.sln.
On VSTS, when I come to my build step, I've this issue:
2018-10-10T13:32:19.9132557Z ##[section]Starting: Build
2018-10-10T13:32:19.9137589Z ==============================================================================
2018-10-10T13:32:19.9137671Z Task : .NET Core
2018-10-10T13:32:19.9137712Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2018-10-10T13:32:19.9137754Z Version : 2.141.0
2018-10-10T13:32:19.9137806Z Author : Microsoft Corporation
2018-10-10T13:32:19.9137844Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2018-10-10T13:32:19.9137901Z ==============================================================================
2018-10-10T13:32:20.7843899Z [command]C:\Windows\system32\chcp.com 65001
2018-10-10T13:32:20.9185978Z Active code page: 65001
2018-10-10T13:32:20.9791878Z [command]"C:\Program Files\dotnet\dotnet.exe" build D:\a\1\s\T-Dash.sln --configuration release
2018-10-10T13:32:27.3327317Z
2018-10-10T13:32:27.3330859Z Welcome to .NET Core!
2018-10-10T13:32:27.3331044Z ---------------------
2018-10-10T13:32:27.3331238Z Learn more about .NET Core # https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
2018-10-10T13:32:27.3331363Z Telemetry
2018-10-10T13:32:27.3331657Z --------------
2018-10-10T13:32:27.3331810Z The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
2018-10-10T13:32:27.3332525Z You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
2018-10-10T13:32:27.3332584Z You can read more about .NET Core tools telemetry # https://aka.ms/dotnet-cli-telemetry.
2018-10-10T13:32:27.3332627Z Configuring...
2018-10-10T13:32:27.3332685Z -------------------
2018-10-10T13:32:27.3332740Z A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
2018-10-10T13:32:32.3411921Z Decompressing 0%Decompressing 1%Decompressing 2%Decompressing 3%Decompressing 4%Decompressing 5%Decompressing 6%Decompressing 7%Decompressing 8%Decompressing 9%Decompressing 10%Decompressing 11%Decompressing 12%Decompressing 13%Decompressing 14%Decompressing 15%Decompressing 16%Decompressing 17%Decompressing 18%Decompressing 19%Decompressing 20%Decompressing 21%Decompressing 22%Decompressing 23%Decompressing 24%Decompressing 25%Decompressing 26%Decompressing 27%Decompressing 28%Decompressing 29%Decompressing 30%Decompressing 31%Decompressing 32%Decompressing 33%Decompressing 34%Decompressing 35%Decompressing 36%Decompressing 37%Decompressing 38%Decompressing 39%Decompressing 40%Decompressing 41%Decompressing 42%Decompressing 43%Decompressing 44%Decompressing 45%Decompressing 46%Decompressing 47%Decompressing 48%Decompressing 49%Decompressing 50%Decompressing 51%Decompressing 52%Decompressing 53%Decompressing 54%Decompressing 55%Decompressing 56%Decompressing 57%Decompressing 58%Decompressing 59%Decompressing 60%Decompressing 61%Decompressing 62%Decompressing 63%Decompressing 64%Decompressing 65%Decompressing 66%Decompressing 67%Decompressing 68%Decompressing 69%Decompressing 70%Decompressing 71%Decompressing 72%Decompressing 73%Decompressing 74%Decompressing 75%Decompressing 76%Decompressing 77%Decompressing 78%Decompressing 79%Decompressing 80%Decompressing 81%Decompressing 82%Decompressing 83%Decompressing 84%Decompressing 85%Decompressing 86%Decompressing 87%Decompressing 88%Decompressing 89%Decompressing 90%Decompressing 91%Decompressing 92%Decompressing 93%Decompressing 94%Decompressing 95%Decompressing 96%Decompressing 97%Decompressing 98%Decompressing 99%Decompressing 100% 4694 ms
2018-10-10T13:33:07.6280747Z Expanding 0%Expanding 1%Expanding 2%Expanding 3%Expanding 4%Expanding 5%Expanding 6%Expanding 7%Expanding 8%Expanding 9%Expanding 10%Expanding 11%Expanding 12%Expanding 13%Expanding 14%Expanding 15%Expanding 16%Expanding 17%Expanding 18%Expanding 19%Expanding 20%Expanding 21%Expanding 22%Expanding 23%Expanding 24%Expanding 25%Expanding 26%Expanding 27%Expanding 28%Expanding 29%Expanding 30%Expanding 31%Expanding 32%Expanding 33%Expanding 34%Expanding 35%Expanding 36%Expanding 37%Expanding 38%Expanding 39%Expanding 40%Expanding 41%Expanding 42%Expanding 43%Expanding 44%Expanding 45%Expanding 46%Expanding 47%Expanding 48%Expanding 49%Expanding 50%Expanding 51%Expanding 52%Expanding 53%Expanding 54%Expanding 55%Expanding 56%Expanding 57%Expanding 58%Expanding 59%Expanding 60%Expanding 61%Expanding 62%Expanding 63%Expanding 64%Expanding 65%Expanding 66%Expanding 67%Expanding 68%Expanding 69%Expanding 70%Expanding 71%Expanding 72%Expanding 73%Expanding 74%Expanding 75%Expanding 76%Expanding 77%Expanding 78%Expanding 79%Expanding 80%Expanding 81%Expanding 82%Expanding 83%Expanding 84%Expanding 85%Expanding 86%Expanding 87%Expanding 88%Expanding 89%Expanding 90%Expanding 91%Expanding 92%Expanding 93%Expanding 94%Expanding 95%Expanding 96%Expanding 97%Expanding 98%Expanding 99%Expanding 100% 34027 ms
2018-10-10T13:33:41.4866462Z Object reference not set to an instance of an object.
2018-10-10T13:33:41.6079659Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1
2018-10-10T13:33:41.6090166Z ##[error]Dotnet command failed with non-zero exit code on the following projects : D:\a\1\s\T-Dash.sln
2018-10-10T13:33:41.6128848Z ##[section]Finishing: Build
I don't really see what could be wrong here? Any idea?
Related
I have a netcore 6 unit test, which is linked to a tfs test case. In the build pipeline I build the netcore dll contains the test (netcore publish), and publish as an artifact (the bin\Release\net6.0\publish path).
In the release pipeline I copy the artifact files to a temp folder, then apply a Visual Studio Test step on this folder, using Test Plan, selecting test suites containing my test case.
Executing the test release pipeline I see the VS Test step found no tests (dunno what is 'test' - test case or test method):
Number of testcases discovered : 0
After this line I see
RunStatistics]This execution slice with id '8405', received '1'
testcases to execute out of which '0' is discovered.
2022-09-07T13:15:26.6593846Z ##[error]The slice of type 'Execution' is
'Aborted' because of the error :
Microsoft.VisualStudio.TestService.VstestAdapter.TestsNotFoundException:
No test assemblies found on the test machine matching the source
filter criteria or no tests discovered matching test filter criteria.
Verify that test assemblies are present on the machine and test filter
criteria is correct.
I use MSTest, the test can be discovered in VS2022 and can be executed correctly.
In the target directory )C:\temp\automata-tfs-tests\MyAPP-autotests) there exists my DLL (Test.AutoTest.dll), also a testhost.exe (if it is interested).
Anyone has any idea what should I do to fix the problem?
Got the following (full) log:
2022-09-07T14:16:02.0649513Z ##[section]Starting: Test run for Test
plans 2022-09-07T14:16:02.0989252Z
============================================================================== 2022-09-07T14:16:02.0989349Z Task : Visual Studio Test
2022-09-07T14:16:02.0989396Z Description : Run unit and functional
tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio
Test (VsTest) runner. Test frameworks that have a Visual Studio test
adapter such as MsTest, xUnit, NUnit, Chutzpah (for JavaScript tests
using QUnit, Mocha and Jasmine), etc. can be run. Tests can be
distributed on multiple agents using this task (version 2).
2022-09-07T14:16:02.0989460Z Version : 2.153.9
2022-09-07T14:16:02.0989504Z Author : Microsoft Corporation
2022-09-07T14:16:02.0989565Z Help : More
information
2022-09-07T14:16:02.0989612Z
============================================================================== 2022-09-07T14:16:03.4309686Z SystemVssConnection exists true
2022-09-07T14:16:03.4310108Z SystemVssConnection exists true
2022-09-07T14:16:03.5947964Z SystemVssConnection exists true
2022-09-07T14:16:03.6776898Z In distributed testing flow
2022-09-07T14:16:03.6777031Z
====================================================== 2022-09-07T14:16:03.6777567Z Test selector : Test plan
2022-09-07T14:16:03.6777717Z Test plan Id : 5955
2022-09-07T14:16:03.6777832Z Test plan configuration Id : 55
2022-09-07T14:16:03.6777963Z Test suite Id selected: 5956
2022-09-07T14:16:03.6778021Z Test suite Id selected: 5959
2022-09-07T14:16:03.6778071Z Test suite Id selected: 5957
2022-09-07T14:16:03.6778205Z Search folder :
C:\temp\automata-tfs-tests\MyAPP-autotests
2022-09-07T14:16:03.6779655Z VisualStudio version selected for test
execution : latest 2022-09-07T14:16:03.6780047Z Attempting to find
vstest.console from a visual studio installation.
2022-09-07T14:16:03.6959999Z Attempting to find vstest.console from a
visual studio build tools installation. 2022-09-07T14:16:03.7387349Z
Attempting to find vstest.console from a visual studio installation.
2022-09-07T14:16:03.7808933Z Attempting to find vstest.console from a
visual studio build tools installation. 2022-09-07T14:16:03.8285853Z
Distributed test execution, number of agents in job : 1
2022-09-07T14:16:03.8286311Z Number of test cases per batch : 100
2022-09-07T14:16:03.8307860Z Run in parallel : false
2022-09-07T14:16:03.8311511Z Run in isolation : false
2022-09-07T14:16:03.8312158Z Path to custom adapters : null
2022-09-07T14:16:03.8322692Z Other console options :
/UseVsixExtensions:true /logger:trx 2022-09-07T14:16:03.8400643Z
##[warning]Other console options is not supported for this task configuration. This option will be ignored.
2022-09-07T14:16:03.8412667Z Code coverage enabled : false
2022-09-07T14:16:03.8412905Z Diagnostics enabled : false
2022-09-07T14:16:03.9119940Z
====================================================== 2022-09-07T14:16:03.9120805Z Source filter: *test.dll,!**\obj*
2022-09-07T14:16:04.0673691Z SystemVssConnection exists true
2022-09-07T14:16:04.0755317Z
[command]C:\BuildAgent_work_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.153.9\Modules\DTAExecutionHost.exe
--inputFile C:\BuildAgent_work_temp\input_9b793c20-2eb7-11ed-955e-6334f9e0a11a.json
2022-09-07T14:16:04.1535459Z
########################################################################## 2022-09-07T14:16:04.1535614Z DtaExecutionHost version 17.153.29006.1.
2022-09-07T14:16:05.1309152Z
=========================================== 2022-09-07T14:16:05.1309447Z AgentName:
BUILDAGENT-MyBu4-BUILDAGENT-MyBu4-24 2022-09-07T14:16:05.1309556Z
ServiceUrl: http://tfs:8080/tfs/MyBu/ 2022-09-07T14:16:05.1309615Z
TestPlatformVersion: 14.0.25420 2022-09-07T14:16:05.1309671Z
EnvironmentUri: vstest://env/MyAPP/_apis/release/3/764/1759/1
2022-09-07T14:16:05.1309725Z QueryForTaskIntervalInMilliseconds: 3000
2022-09-07T14:16:05.1309821Z MaxQueryForTaskIntervalInMilliseconds:
10000 2022-09-07T14:16:05.1309901Z
QueueNotFoundDelayTimeInMilliseconds: 3000
2022-09-07T14:16:05.1312343Z MaxQueueNotFoundDelayTimeInMilliseconds:
50000 2022-09-07T14:16:05.1312398Z
=========================================== 2022-09-07T14:16:05.4078702Z TestExecutionHost.Execute: Registered
TestAgent : 4034 : BUILDAGENT-MyBu4-BUILDAGENT-MyBu4-24
2022-09-07T14:16:05.4371941Z IsValidServiceResponse: Received None
command..Service Workflow is not active 2022-09-07T14:16:05.4417823Z
Updated Run Settings: 2022-09-07T14:16:05.4434862Z
2022-09-07T14:16:05.4435203Z
2022-09-07T14:16:05.4435273Z
C:\BuildAgent_work_temp\TR_46cf95a5-fd11-47f6-b503-3fa5ffad22f3 2022-09-07T14:16:05.4435335Z
2022-09-07T14:16:05.4435413Z
2022-09-07T14:16:05.6424857Z Creating run for selected test plan with
following parameters 2022-09-07T14:16:05.6426439Z Test plan ID: 5955
2022-09-07T14:16:05.6427075Z Test suite ID: 5956,5959,5957
2022-09-07T14:16:05.6427697Z Test configuration ID: 55
2022-09-07T14:16:05.7792179Z No test cases for test suite 5956
2022-09-07T14:16:06.0575605Z No test cases for test suite 5957
2022-09-07T14:16:06.0577076Z test configuration mapping:
2022-09-07T14:16:06.0617024Z test settings id : 4895
2022-09-07T14:16:06.0617414Z Run title: MyAPP Auto Test Results
2022-09-07T14:16:06.0617774Z Build location:
C:\temp\automata-tfs-tests\MyAPP-autotests
2022-09-07T14:16:06.0618880Z Build Id: 15656
2022-09-07T14:16:06.3113960Z Test run with Id 16287 associated
2022-09-07T14:16:16.4930577Z Received the command : Start
2022-09-07T14:16:16.4949323Z TestExecutionHost.ProcessCommand. Start
Command handled 2022-09-07T14:16:16.5604339Z Slice with id = 8407, of
type = 'Execution' received. 2022-09-07T14:16:16.7663381Z Count of
test sources found: 1 2022-09-07T14:16:16.7763833Z
================================================================= 2022-09-07T14:16:16.7767368Z Discovering tests from sources
2022-09-07T14:16:23.4267264Z Number of testcases discovered : 0
2022-09-07T14:16:23.4269136Z Discovered tests 0 from sources
2022-09-07T14:16:23.4299463Z
================================================================= 2022-09-07T14:16:23.4344966Z [RunStatistics]This execution slice with
id '8407', received '1' testcases to execute out of which '0' is
discovered. 2022-09-07T14:16:23.4603621Z ##[error]The slice of type
'Execution' is 'Aborted' because of the error :
Microsoft.VisualStudio.TestService.VstestAdapter.TestsNotFoundException:
No test assemblies found on the test machine matching the source
filter criteria or no tests discovered matching test filter criteria.
Verify that test assemblies are present on the machine and test filter
criteria is correct. 2022-09-07T14:16:23.4604497Z at
Microsoft.VisualStudio.TestService.VstestAdapter.Execution.Run(ExecutionStateContext
stateModdelContext, CancellationToken cancellationToken)
2022-09-07T14:16:23.4604635Z at
Microsoft.VisualStudio.TestService.VstestAdapter.ExecutionAndPublish.Run(ExecutionStateContext
stateModelContext, CancellationToken cancellationToken)
2022-09-07T14:16:37.5289010Z Received the command : Stop
2022-09-07T14:16:37.5289369Z TestExecutionHost.ProcessCommand. Stop
Command handled 2022-09-07T14:16:37.5289442Z SliceFetch Aborted.
Moving to the TestHostEnd phase 2022-09-07T14:16:37.6567079Z Please
use this link to analyze the test run :
http://tfs:8080/tfs/MyBu/MyAPP/_TestManagement/Runs#_a=resultQuery&runId=16287&queryPath=Recent+Run%2FRun16287
2022-09-07T14:16:37.6567848Z Test run '16287' is in 'Aborted' state
with 'Total Tests' : 1 and 'Passed Tests' : 0.
2022-09-07T14:16:37.6593787Z ##[error]Test run is aborted. Logging
details of the run logs. 2022-09-07T14:16:37.6621205Z
##[error]System.Exception: The test run was aborted, failing the task. 2022-09-07T14:16:37.7157795Z
########################################################################## 2022-09-07T14:16:37.8420313Z ##[section]Finishing: Test run for Test
plans
Interestingly (this agent runs automata tests for another project without any problem) now I must add the "Visual Studio test platform installer" also and must change the setting *Test platform version" from "Latest" to "Installed by tools installer". And now it works.
I am trying to setup CI for a ASP.NET project. There is a publish profile defined in VS, which is working fine. (I can deploy the page to a remote IIS server.)
I want to automate this, using GitLab, so I am looking for a command line equivalent of the publish action of VS.
The publish profile files that VS is using can be found under Properties\PublishProfiles. I have 2 files here:
myServer.pubxml (contains the username to use for deploy, and other server data, like hostname)
myServer.pubxml.user (contains the encrypted password for the user)
My attempts to deploy/publish on the command line:
dotnet publish /p:PublishProfile=myServer.pubxml
This results in the following error:
MSDEPLOY : error Code: ERROR_USER_UNAUTHORIZED [C:\Users\myUser\source\repos\Beam Time Request\BeantimeRequest\BeantimeRequest.csproj] Error : The remote server returned an error : (401) Unauthorized. [C:\Users\myUser\source\repos\Beam Time Request\BeantimeRequest\BeantimeRequest.csproj] MSDEPLOY : error count: 1. [C:\Users\myUser\source\repos\Beam Time Request\BeantimeRequest\BeantimeRequest.csproj]
Which is logical, as I have not defined the password.
I can set the password on the command line, like this:
dotnet publish /p:PublishProfile=myServer.pubxml /p:password=myPassword
And this works, but I want to avoid having the password written in plain text.
So how could I tell dotnet publish to use the password from the myServer.pubxml.user file?
If anyone come across this:
I solved this with a GitLab Secret, as follows:
Defined a new GitLab Secret for the repository, called DEPLOY_PASSWD
using the following command to deploy:
dotnet publish -c Release -o Publish /p:PublishProfile=myServer.pubxml /p:password=$DEPLOY_PASSWD"
First I am new to the use of GLUON mobile. I have developed an application in JAVAFX which I eventually want to port to an android device. At this stage I have just been reading as much as I can an viewing Gluon tutorials. I have followed the steps as per https://docs.gluonhq.com/#_run_the_application using initially the default MultiViewProjectFXML. hence the default POM.
I have no issues running the app via javafx:run.
When I do a mvn -Pandroid client:build I get the below error in which the path can't be found:
Fatal error:java.util.MissingResourceException: Can't find bundle for base name com.gluonapplication.views.primary, locale en_US
I have no doubt made a finger fault somewhere. I have graalvm-ce-java11-21.0.0 along with Java 11. In one tutorial I noted that when mvn -v was run you see reference to graalvm. I see Java version: 11.0.10, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-oracle.
Please let me know if you require any other details in order to assist. Thanks in advance
Output
[com.gluonapplication.gluonapplication:31983] classlist: 2,208.75 ms, 0.96 GB
[com.gluonapplication.gluonapplication:31983] setup: 372.72 ms, 0.96 GB
Fatal error:java.util.MissingResourceException: Can't find bundle for base name com.gluonapplication.views.primary, locale en_US
at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2055)
at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1689)
at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1593)
at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1284)
at com.oracle.svm.util.ModuleSupport.getResourceBundleFallback(ModuleSupport.java:82)
at com.oracle.svm.util.ModuleSupport.getResourceBundle(ModuleSupport.java:58)
at com.oracle.svm.core.jdk.LocalizationFeature.addBundleToCache(LocalizationFeature.java:267)
at com.oracle.svm.core.jdk.LocalizationFeature.addResourceBundles(LocalizationFeature.java:248)
at com.oracle.svm.core.jdk11.LocalizationFeatureJDK11OrLater.addResourceBundles(LocalizationFeatureJDK11OrLater.java:54)
at com.oracle.svm.core.jdk.LocalizationFeature.afterRegistration(LocalizationFeature.java:155)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$setupNativeImage$11(NativeImageGenerator.java:849)
at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:70)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:849)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:561)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:476)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Error: Image build request failed with exit status 1
I have Java EE Eclipse Indigo installed and am trying to use Help->Install New Software to install the SpringSource Tool Suite from the update site http://dist.springsource.com/release/TOOLS/update/e3.7
I have java 1.7.0_45 installed in use by Eclipse.
When I click "Finish", the Installing Software progress indicator displays and it goes about 49% of the way to completion before getting
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,org.grails.ide.eclipse.core,3.6.3.201411271013-RELEASE.
Error reading signed content:C:\Users\BARRET~1.REE\AppData\Local\Temp\signatureFile3011079682847967573.jar
An error occurred while processing the signatures for the file: C:\Users\BARRET~1.REE\AppData\Local\Temp\signatureFile3011079682847967573.jar
The last 3 lines are duplicated for around 20 different artifacts/jar files.
In my C:\Users directory, I have both a BARRETT~1~REE\AppData\Local\Temp directory and a barrett.reed\AppData\Local\Temp directory. It looks like the files are being downloaded to barrett.reed\AppData\Local\Temp. Perhaps that is the issue? Any way to resolve this?
Thanks in advance,
B.J. Reed
I am trying to run a build script and I keep getting errors during a specific svn task. When I try to build the target from the command line, I get an authentication error. When I run the build from flex builder I get an error saying "please get a newer Subversion client". From what I can tell there is a root issue that can be seen here when doing an ant -verbose:
svn_update:
[echo] Updating the project source...
[svn] Using javahl
[svn] <Update> started ...
[svn] update /Users/dave/Documents/Flex Builder 3/AssetLibrary -r HEAD --force
[svn] At revision 373.
[svn] <Update> finished.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build-template/commonbuild.xml.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/AssetLibrary/build.xml.
[echo] Updating DataService Source
...
svn_update:
[echo] Updating the project source...
[svn] Using command line
[svn] <Update> started ...
[svn] up -r HEAD /Users/dave/Documents/Flex Builder 3/DataService --non-interactive
[svn] svn: OPTIONS of 'https://svn.example.com/{redacted}': authorization failed: Could not authenticate to server: ignored NTLM challenge, rejected Basic challenge (https://svn.example.com)
[svn] <Update> failed !
[ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build-template/commonbuild.xml.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/DataService/build.xml.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build.xml.
As you can see, the second (failing) svn_update target is using command line, and the first (working) update is using javahl. I am using the default attributes for svn, so javahl should default to be used.
I updated my svnant jars to 1.3.0.
Would love some help with this one!
Dave
First thing that's catching my eye is that the javahl one isn't calling the update on the same directory as the last one:
/Users/david.marr/Documents/Flex Builder 3/AssetLibrary
vs.
/Users/david.marr/Documents/Flex Builder 3/DataService
It could be that there is some other SVN problem underlying and you're just getting a misleading error message. Also, are you sure url https://svn.frogdesign.com/{redacted} is being parsed correct whatnot? "{redacted}" doesn't look like ANT syntax to me, and neither a regular url.
Maybe your command line client is too old, and the server has a versioning constraint on clients allowed to connect? What does svn --version say?
I usually get the Could not authenticate to server: ignored NTLM challenge, rejected Basic challenge error I use svn update in non interactive mode (example: svn update --non-interactive > output.txt) and when my NT or Active Directory password has changed. The way to fix this would be to first run svn update > output.txt which will then prompt you for your password. Once provided, you will get the following
Authentication realm: <http://svnserver:80> SVN Server
Password for 'siacca':
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
<http://svnserver:80> SVN Server
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/cygdrive/u/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
Once this is done (I'm with you, I don't like storing my password unencrypted either, but this is the only way I can run automated nightly svn updates), you should be able to run svn update in non-interactive mode.