I am trying to figure out which Apache Ant version is running on the Jenkins server. Starting from Apache Ant 1.7.0, you can make use of the <Antversion> task to determine the running Ant version. The following is a simple build.xml which could serve this purpose.
<project name="ant-antversion-example" default="run" basedir=".">
<target name="run">
<echo message="Checking ANT version ..."/>
<antversion property="antversion"/>
<echo message=" version: ${antversion}"/>
</target>
</project>
For what it’s worth:
It’s never too late to be whoever you want to be.
I hope you live a life you’re proud of.
And if you find that you’re not, I hope you have the strength to start over.
The <sshexec> task is a very handle tool for executing command on the server through SSH. But i find that the SSH session does not have the proper environmental variables. Here is a simple solution.
We can use PowerShell as a SSH client. If your SSH server requires key authentication, you can use the following command to add your private key before you could establish the SSH connection.
I have installed Sublime Text 3 with the Git package but it keeps prompting Git command not found in the PATH variable. Before i update the PATH, i have to figure out where is my Git command.