Unzip using VSTS build

ashish

I am unable to unzip the file using VSTS git.

I have tried using unzip, extract file, unzip file but none shows the unzipped file after the build is successfully run

starian chen-MSFT

Refer to these steps below to push unzipped files to git repository:

  1. Go to Admin page of that team project (https://{account}.visualstudio.com/{project name}/_admin/_versioncontrol?repoGroup=true&_a=security)
  2. Select corresponding repository
  3. Select Project Collection Build Service (xxx) user and change Contribute permission to Allow
  4. Edit build definition, select the Phase and check Allow scripts to access OAuth token option
  5. Upzip zip files to a directory task: Zip files to unzip: $(System.DefaultWorkingDirectory)\cicdadf.zip; Upzip to path:$(System.DefaultWorkingDirectory)
  6. Command line task: Tool: git; Arguments: config --global user.email [email protected]. Working folder: $(System.DefaultWorkingDirectory)
  7. Command line task: Tool: git; Aeguments: config --global user.name "Your Name"; Working folder: $(System.DefaultWorkingDirectory)
  8. Command line task: Tool: git; Arguments: add cicdadf/**; Working folder: $(System.DefaultWorkingDirectory)
  9. Command line task: Tool: git; Aeguments: commit -m "add unzipped files"; Working folder: $(System.DefaultWorkingDirectory)
  10. Command line task: Tool: git; Aeguments: push https://test:$(System.AccessToken)@{account}.visualstudio.com/{team project}/_git/{respository} HEAD:master; Working folder: $(System.DefaultWorkingDirectory)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

VSTS: Using $(BuildID) as an argument in a build step

From Dev

VSTS: Using $(BuildID) as an argument in a build step

From Dev

VSO/VSTS: Error when using Publish Build Artifacts on the host agent

From Dev

Using VSTS to build/run Selenium tests defined in shared solution

From Dev

VSTS: How to get release ID triggered by a build using REST API

From Dev

Using an external .jar file in a vsts hosted Maven build

From Dev

VSTS build .NET ASP to Web Service using Continuous Deployment

From Dev

Recursion using OCaml and unzip

From Dev

using path with "*" in unzip command

From Dev

VSTS build with multiple repos

From Dev

VSTS Custom Build Number

From Dev

How to unzip a file using the cmd?

From Dev

Using Applescript to zip and unzip a folder

From Dev

unzip file in android using phonegap

From Dev

using awk to unzip files in directory

From Dev

Unable to access private VSTS package feed from build using dotnet restore

From Dev

Dynamics CRM Plugin and VSTS Build

From Dev

VSTS Extension build summary section

From Dev

Set environment variable for VSTS build

From Dev

Exclusion pattern not working for vsts build

From Dev

VSTS Build failed on Get Sources

From Dev

Securing a Private Build Agent in VSTS

From Dev

unzip file without using `unzip` on Linux on a file zipped on Windows

From Dev

Build issue in VSTS build agent on Mac (Xamarin)

From Java

How to unzip zip file in rhel7 docker build environment - unzip command not found though its in OS

From Dev

Unzip gradle dependencies using artifact name

From Dev

Unzip a file using SSZipArchive not extracting the contents of the file

From Dev

Upload a .zip file to FTP and unzip it using PHP

From Dev

How to unzip multiple zip folders using VBscript?

Related Related

  1. 1

    VSTS: Using $(BuildID) as an argument in a build step

  2. 2

    VSTS: Using $(BuildID) as an argument in a build step

  3. 3

    VSO/VSTS: Error when using Publish Build Artifacts on the host agent

  4. 4

    Using VSTS to build/run Selenium tests defined in shared solution

  5. 5

    VSTS: How to get release ID triggered by a build using REST API

  6. 6

    Using an external .jar file in a vsts hosted Maven build

  7. 7

    VSTS build .NET ASP to Web Service using Continuous Deployment

  8. 8

    Recursion using OCaml and unzip

  9. 9

    using path with "*" in unzip command

  10. 10

    VSTS build with multiple repos

  11. 11

    VSTS Custom Build Number

  12. 12

    How to unzip a file using the cmd?

  13. 13

    Using Applescript to zip and unzip a folder

  14. 14

    unzip file in android using phonegap

  15. 15

    using awk to unzip files in directory

  16. 16

    Unable to access private VSTS package feed from build using dotnet restore

  17. 17

    Dynamics CRM Plugin and VSTS Build

  18. 18

    VSTS Extension build summary section

  19. 19

    Set environment variable for VSTS build

  20. 20

    Exclusion pattern not working for vsts build

  21. 21

    VSTS Build failed on Get Sources

  22. 22

    Securing a Private Build Agent in VSTS

  23. 23

    unzip file without using `unzip` on Linux on a file zipped on Windows

  24. 24

    Build issue in VSTS build agent on Mac (Xamarin)

  25. 25

    How to unzip zip file in rhel7 docker build environment - unzip command not found though its in OS

  26. 26

    Unzip gradle dependencies using artifact name

  27. 27

    Unzip a file using SSZipArchive not extracting the contents of the file

  28. 28

    Upload a .zip file to FTP and unzip it using PHP

  29. 29

    How to unzip multiple zip folders using VBscript?

HotTag

Archive