How to scan a Git repo with the Command Line (using Apache Ant)

In a previous post, we provided a script template to use integrate a Highlight code scan within a Jenkins pipeline. Let's see now in this article how to clone a repository from Github and run Highlight's analyzers from Apache Ant, and upload scan results to the portal and quickly get unprecedented software Analytics. The script below illustrates how to integrate the command line from Apache Ant. Don't hesitate to adapt your typical build.xml to your context and once you're all set, just run ant -buildfile build.xml. As you probably know, Ant proposes an interesting connectivity to a bunch SCM tools such as Subversion, CVS, Git, ClearCase, Microsoft Virtual SourceSafe... Want to use our command line from another tool? Don't hesitate to contact us, we'll try to post a script sample for your environment in the coming articles. [nz_btn text="Try CAST Highlight" link="http://content.casthighlight.com/trial-hl-request" target="_blank" icon="icon-screen" animate="true" animation_type="ghost" color="black" size="small" shape="rounded" type="normal" hover_normal="fill" hover_ghost="fill"][nz_btn text="Read the Command Line documentation" link="http://casthighlight.wpengine.com/product-tutorials-third-party-tools/automated-code-scan-command-line/" target="_self" icon="icon-screen" animate="true" animation_type="ghost" color="pink" size="small" shape="rounded" type="ghost" hover_normal="fill" hover_ghost="fill"]
For reference only. For the complete details please refer the original article
https://doc.casthighlight.com/run-highlight-command-line-apache-ant/
Have more questions? Submit a request

Comments

Powered by Zendesk