I am using the Azure pipeline with Git repo for a .net application.
Is there a build step(s) that make it possible to
- download the zipped solution(source files) from the git repository
- and upload the zip file to an external API
I am using the Azure pipeline with Git repo for a .net application.
Is there a build step(s) that make it possible to
I can help with the download. Haven't tried upload, but maybe you can re-use the same idea. An idea is to have a script that would call the 'curl' command to download the zip file, like in the example below, where I am creating some folder structure and then droping the downloaded file
- task: CmdLine@2
inputs:
script: |
cd Folder1
cd Folder2
mkdir models
curl --output models/model_name.bin https://s3.amazonaws.com/models.test/model_name.bin
And replace the URLs and destination folders and give it a try :)
Update:
I just found but did not test it. Below is the curl command for uploading:
To upload a file to an FTP server, the command would be:
curl -T FILENAME SERVER_ADDRESS -user USERNAME:PASSWORD