Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enh deploy release v6 #278

Merged
merged 12 commits into from
Jan 16, 2023
Merged

Enh deploy release v6 #278

merged 12 commits into from
Jan 16, 2023

Conversation

benPearce1
Copy link
Contributor

@benPearce1 benPearce1 commented Jan 12, 2023

- task: OctopusDeployRelease@6
  name: 'release'
  inputs:
    OctoConnectedServiceName: 'octo'
    Space: 'Default'
    Project: 'project 1'
    ReleaseNumber: '1.2.10'
    Environments: 'dev,dev 2'
    Variables: |
      prompt: $(build.buildid)
    AdditionalArguments: --variable prompt2=prompt2

Supports variables coming from either additional arguments or the variable field

In ui mode
image

@benPearce1 benPearce1 changed the title Enh deloy release v6 Enh deploy release v6 Jan 12, 2023
@@ -127,11 +126,12 @@ function Pack($envName, $environment, $workingDirectory) {

& ./node_modules/.bin/tfx extension create --root $workingDirectory --manifest-globs extension-manifest.json --overridesFile $overridesFile --outputPath "$buildArtifactsPath/$environment" --no-prompt

if (-not $?) {throw "Failed to create extension. Exit Code $LASTEXITCODE"}
& npm uninstall tfx-cli
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change to this line, the rest was auto-formatting kicking in

import { getInputParameters } from "./input-parameters";
import * as tasks from "azure-pipelines-task-lib/task";

export class MockTaskWrapper implements TaskWrapper {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to move to a common location, but I initially had a reference issue so I put it here for now

"label": "Additional Arguments (deprecated)",
"defaultValue": "",
"required": false,
"helpMarkDown": "Additional arguments are no longer supported, move these values to the appropriate fields",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording?

],
"instanceNameFormat": "Deploy Octopus Release",
"execution": {
"Node16": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

import commandLineArgs from "command-line-args";
import shlex from "shlex";

describe("cli args", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests were me working out how to parse the arguments from the AdditionalArguments field, thought I would leave them here for future reference

@benPearce1 benPearce1 marked this pull request as ready for review January 13, 2023 01:01
@benPearce1 benPearce1 changed the base branch from main to enh-steps-v6 January 13, 2023 01:02
Copy link
Contributor

@slewis74 slewis74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Offered some ideas on the wording for the no longer supported fields. vsts.md hasn't been updated.

source/tasks/Deploy/DeployV6/task.json Outdated Show resolved Hide resolved
source/tasks/Deploy/DeployV6/task.json Outdated Show resolved Hide resolved
@benPearce1 benPearce1 requested a review from slewis74 January 13, 2023 02:19
@benPearce1 benPearce1 merged commit 2802390 into enh-steps-v6 Jan 16, 2023
@benPearce1 benPearce1 deleted the enh-deloy-release-v6 branch January 16, 2023 05:52
benPearce1 added a commit that referenced this pull request Feb 8, 2023
feat: New steps for Zip/NuGet pack (#276)
feat:push step v6 (#277)
feat: deploy release v6 (#278)
feat: deploy tenant release v6 (#281)
feat: await task (#282)
feat: Run runbook step (#285)
feat: Create release v6 (#283)
chore: updated the way user agent strings are built for the v6 steps (#287)
feat: push build information v6 (#284)
chore: Added output variable definitions for the Pack steps
feat: CLI installer step - v6 (#279)
chore: added warning logs for use of additional arguments fields (#286)
chore: fixed some pluralisation inconsistencies

Co-authored-by: Ben Pearce <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants