Giter Club home page Giter Club logo

azure-devops-variable-tools's People

Contributors

ae-ms avatar bworline avatar mrhinsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

azure-devops-variable-tools's Issues

How to access variables in release task

Hi, there is no wiki and I can't find information in web how to use this task. I managed to add jsons in my artifact and the json also has all my values. My question is how do I access my variables in a release task (for example I have a Powershell inline task where I need GitVersion.MajorMinorPatch)?

This is how my GitVersion JSON looks like:

[ { "Name": "GITVERSION_LEGACYSEMVERPADDED", "Value": "1.2.0-alpha0001" }, { "Name": "GITVERSION_PRERELEASETAG", "Value": "alpha.1" }, { "Name": "GITVERSION_PRERELEASENUMBER", "Value": "1" }, { "Name": "GITVERSION_INFORMATIONALVERSION", "Value": "1.2.0-alpha.1+Branch.develop.Sha.be0465c06880dfea1b6a67cf83a975496b70bde3" }, { "Name": "GITVERSION_NUGETPRERELEASETAGV2", "Value": "alpha0001" }, { "Name": "GITVERSION_NUGETVERSIONV2", "Value": "1.2.0-alpha0001" }, { "Name": "GITVERSION_MAJOR", "Value": "1" }, { "Name": "GITVERSION_PRERELEASELABEL", "Value": "alpha" }, { "Name": "GITVERSION_SHA", "Value": "be0465c06880dfea1b6a67cf83a975496b70bde3" }, { "Name": "GITVERSION_LEGACYSEMVER", "Value": "1.2.0-alpha1" }, { "Name": "GITVERSION_NUGETVERSION", "Value": "1.2.0-alpha0001" }, { "Name": "GITVERSION_BUILDMETADATA", "Value": "" }, { "Name": "GITVERSION_FULLBUILDMETADATA", "Value": "Branch.develop.Sha.be0465c06880dfea1b6a67cf83a975496b70bde3" }, { "Name": "GITVERSION_MAJORMINORPATCH", "Value": "1.2.0" }, { "Name": "GITVERSION_COMMITSSINCEVERSIONSOURCEPADDED", "Value": "0001" }, { "Name": "GITVERSION_VERSION", "Value": "4.0.0-beta0012" }, { "Name": "GITVERSION_FULLSEMVER", "Value": "1.2.0-alpha.1" }, { "Name": "GITVERSION_COMMITDATE", "Value": "2018-06-22" }, { "Name": "GITVERSION_PATCH", "Value": "0" }, { "Name": "GITVERSION_ASSEMBLYSEMFILEVER", "Value": "1.2.0.0" }, { "Name": "GITVERSION_PRERELEASETAGWITHDASH", "Value": "-alpha.1" }, { "Name": "GITVERSION_BUILDMETADATAPADDED", "Value": "" }, { "Name": "GITVERSION_NUGETPRERELEASETAG", "Value": "alpha0001" }, { "Name": "GITVERSION_COMMITSSINCEVERSIONSOURCE", "Value": "1" }, { "Name": "GITVERSION_ASSEMBLYSEMVER", "Value": "1.2.0.0" }, { "Name": "GITVERSION_BRANCHNAME", "Value": "develop" }, { "Name": "GITVERSION_SEMVER", "Value": "1.2.0-alpha.1" }, { "Name": "GITVERSION_MINOR", "Value": "2" } ]

Tools are using a deprecated task execution handler

Using these tools in AzDO as of today gives the following warning:

2019-10-19T16:21:19.4060064Z ##[warning]Task 'VSTSToolsListVariables' (1.4.2) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib

Impossible to install

Hello,

When I try to install the extension to my on-premises 2017 U1 TFS, I have an error message saying: "Extension package contains invalid character(5, 56). Error: XML Document- 'Private' is not a valid value for global::Microsoft.VisualStudio.Services.Gallery.WebApi.PublishedExtensionFlags."

Do you know how I can solve this issue and complete the installation?

Thank you for the help, have a great weekend. ;)

Is this workflow supported?

Is this workflow possible with this tool.

I have a release base on a build. For this example I have 3 environments. Development, UAT, and Production.
After a successful deploy to UAT, (the 1nd environment) I want to run a PowerShell task that creates a ServiceNow Change request ticket via REST API.
When I submit the request ServiceNow returns a JSON that I can extract the CR Number. At the end of the script I try to store the CR as a variable

Save the CR# as a variable

$crnumber = $response.result.number
Write-Output "CR#= " $crnumber

After that step I am running the Save Build Variables

My question is do I need to define the $crnumber in the save task?

The extension stopped working

I have a build pipeline with the "Save Variable" task defined. I then have a release that reads off the variable using the "Load Variable" task from a release that reads off the variable from the artifact.

The release is failing (despite the json file being in the artifact) with an error message of:

Did not get a result retunred from the upload, twas not even JSON!
A parameter cannot be found that matches parameter name 'Raw'.

This is the happy scenario. Everything on default. What happened?

Update for linux

Any plans on updating this so that it works in other platforms than Windows? There is an existing task from MS that runs PowerShell in all environments now.

Make task work on Linux based agents

I'm getting the following error when trying to run task on Linux agent (Ubuntu 17.04):

2018-04-30T10:15:32.2770404Z ##[error]A supported task execution handler was not found. This error usually means the task does not carry an implementation that is compatible with your current operating system. Contact the task author for more details.
2018-04-30T10:15:32.2815678Z ##[section]Finishing: (re)Hydrate Build Variables https://rmdartifacts.blob.core.windows.net/buildartifacts/variables.json

Variables is spelled incorrectly

vsts-variable-hydration-tasks/variabledehydration-task/task.json

Line 43 & 46

vsts-variable-hydration-tasks/variabledehydration-task/dehydrate-veriables.ps1
vsts-variable-hydration-tasks/variablerehydration-task/rehydrate-veriables.ps1

vsts-variable-hydration-tasks/variablerehydration-task/task.json

Line 5, 35, & 38

Json file not being saved when using Variable Save Task

According to the documentation and source code a .json-file should be saved with the requested variables. I set it to be stored in the default folder (Build.ArtifactStagingDirectory), but I don't see it in the final result of my build step. I am publishing build artifacts from the mentioned folder, but no .json files appear. I am using Azure DevOps Server. See the attached screenshot for the logs:

image

According to the documentation, the last log line should log "created {result}", but it just logs "created ".

Installation Issues

I have installed the extension in our on-premise TFS gallery then also added it to our collection.
However, the build task is not showing up. Would you guys know how to resolve this? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.