microsoft / vso-agent

Visual Studio Team Services and TFS agent for Mac OSX and Linux
MIT License
131 stars 56 forks source link

ANT faliure on VSTS agent #322

Closed mohit1606 closed 6 years ago

mohit1606 commented 7 years ago

Hi, I am getting the below error when i am running my build in one of our updated vsts agent.

2017-03-01T10:09:00.0168140Z [command]/usr/local/ant/bin/ant -version 2017-03-01T10:09:00.2011600Z Error: Could not find or load main class org.apache.tools.ant.launch.Launcher 2017-03-01T10:09:00.2513070Z ##[error]/usr/local/ant/bin/ant failed with return code: 1 2017-03-01T10:09:00.2541960Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/local/ant/bin/ant failed with return code: 1 2017-03-01T10:09:00.2684550Z ##[debug]Processed: ##vso[task.complete result=Failed;]/usr/local/ant/bin/ant failed with return code: 1

Agent Details: Agent.OS- linux Agent.Version - 2.112.0 ant -/usr/local/ant/bin/ant ANT_HOME - /opt/apache-ant-1.8.4/bin

While running the same command " /usr/local/ant/bin/ant -version" manually in agent it works fine.

penupati commented 7 years ago

We are also facing this issue after version upgrade to 2.112.0. Surprisingly we have't found this issue with Agent version 2.111.1. Due to this issue, we are unable to run builds where our development activities are hampering. Can you please suggest how to resolve this issue? Madhu

bryanmacfarlane commented 6 years ago

Deprecated. Replacement is here: https://github.com/Microsoft/vsts-agent