pirasdi (Community Member) asked a question.

Unable to only import certain files in Upload and Scan task from Azure DevOps Pipeline

we are uploading files from an Azure Pipeline yaml task, below is the task definition,

the target folder contains dozens of files and a single jar file, other files are like .class files and similar.

 

when the Pipeline runs it still uploads everything and not only the single .jar file, like if it is ignoring the line:  optargs: '-include *.jar'

 

what should i do to ignore all but *.jar files and upload only these kind of files?

 

Thanks,

Davide

 

- task: Veracode@3

 inputs:

  ConnectionDetailsSelection: 'Endpoint'

  AnalysisService: 'Veracode Insurance'

  veracodeAppProfile: 'Insurance BIT'

  version: '$(Build.BuildNumber)'

  filepath: '$(Build.SourcesDirectory)/target'

  optargs: '-include *.jar'

  maximumWaitTime: '360'

 


  • marcboggs (Community Member)

    Do the jar files names change? What happens if you list the file names explicitly? optargs: '-include myjar1.jar, myjar2.jar, myjar3.jar'

Topics (2)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.