Feature/move-to-common-pipeline (#198)

This commit is contained in:
Madis Kõosaar 2022-04-22 09:50:29 +03:00 коммит произвёл GitHub
Родитель a0c4cf0c97
Коммит f0ace97e48
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 911 добавлений и 6634 удалений

Просмотреть файл

@ -0,0 +1,90 @@
variables:
- name: version.MajorMinor # Manually adjust the version number as needed for semantic versioning. Patch is auto-incremented.
value: '2.2'
- name: extensionName
value: 'vsts-extensions-multivalue-control'
- name: marketplaceServiceConnection
value: 'marketplaceServiceConnection'
- name: publisherId
value: 'ms-devlabs'
- name: publicExtensionName
value: "Multivalue control"
name: $(version.MajorMinor)$(rev:.r)
trigger:
branches:
include:
- master
pr: none
resources:
repositories:
- repository: pipeline-templates
type: git
name: Sage/pipeline-templates
ref: main
stages:
- stage: 'Build'
jobs:
- job: 'BuildPack'
displayName: "Build and package"
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
- template: build.yml@pipeline-templates
- template: package.yml@pipeline-templates
parameters:
extensionName: $(extensionName)
outputPath: 'out'
rootPath: './'
- stage: 'DeployDev'
displayName: 'Deploy to dev'
dependsOn: Build
condition: succeeded()
jobs:
- template: deploy.yml@pipeline-templates
parameters:
environment: 'dev'
extensionName: $(extensionName)
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
updateTaskVersion: true
- stage: 'DeployTest'
displayName: 'Deploy to Test'
dependsOn: DeployDev
condition: succeeded()
jobs:
- template: deploy.yml@pipeline-templates
parameters:
environment: 'test'
extensionName: $(extensionName)
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
updateTaskVersion: true
- stage: 'DeployRelease'
displayName: 'Deploy Release'
dependsOn: DeployTest
condition: succeeded()
jobs:
- template: deploy.yml@pipeline-templates
parameters:
environment: 'public'
extensionName: $(extensionName)
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
extensionVisibility: 'public'
updateTaskVersion: true

Просмотреть файл

7435
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -22,7 +22,7 @@
"@types/react": "^16.4.8",
"@types/react-dom": "^16.0.7",
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^3.2.0",
"css-loader": "^6.7.1",
"jsonpath": "^1.1.1",
"lodash": "^4.17.21",
"office-ui-fabric-react": "^6.47.1",
@ -37,7 +37,7 @@
"webpack": "^5.61.0",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.4.0"
"webpack-dev-server": "^4.8.1"
},
"dependencies": {
"es6-promise": "^4.2.8"

Просмотреть файл

@ -2,11 +2,11 @@
var exec = require("child_process").exec;
var manifest = require("../vss-extension.json");
var manifest = require("../azure-devops-extension.json");
var extensionId = manifest.id;
// Package extension
var command = `tfx extension create --extension-id ${extensionId}-beta --overrides-file configs/beta.json --manifest-globs vss-extension.json --no-prompt --json`;
var command = `tfx extension create --extension-id ${extensionId}-beta --overrides-file configs/beta.json --manifest-globs azure-devops-extension.json --no-prompt --json`;
exec(command, (error, stdout) => {
if (error) {
console.error(`Could not create package: '${error}'`);

Просмотреть файл

@ -1,11 +1,11 @@
var exec = require("child_process").exec;
// Load existing publisher
var manifest = require("../vss-extension.json");
var manifest = require("../azure-devops-extension.json");
var extensionId = manifest.id;
// Package extension
var command = `tfx extension create --overrides-file configs/dev.json --manifest-globs vss-extension.json --extension-id ${extensionId}-dev --no-prompt --rev-version`;
var command = `tfx extension create --overrides-file configs/dev.json --manifest-globs azure-devops-extension.json --extension-id ${extensionId}-dev --no-prompt --rev-version`;
exec(command, function(err, stdout, stderr) {
console.log(stderr);
console.log(stdout);

Просмотреть файл

@ -1,11 +1,11 @@
var exec = require("child_process").exec;
// Load existing publisher
var manifest = require("../vss-extension.json");
var manifest = require("../azure-devops-extension.json");
var extensionId = manifest.id;
// Package extension
var command = `tfx extension create --overrides-file configs/devHttp.json --manifest-globs vss-extension.json --extension-id ${extensionId}-dev --no-prompt`;
var command = `tfx extension create --overrides-file configs/devHttp.json --manifest-globs azure-devops-extension.json --extension-id ${extensionId}-dev --no-prompt`;
exec(command, function() {
console.log("Package created");
});

Просмотреть файл

@ -3,7 +3,7 @@
var exec = require("child_process").exec;
// Package extension
var command = `tfx extension create --overrides-file configs/release.json --manifest-globs vss-extension.json --no-prompt --json`;
var command = `tfx extension create --overrides-file configs/release.json --manifest-globs azure-devops-extension.json --no-prompt --json`;
exec(command, function(err, stdout, stderr) {
console.log(stderr);
console.log(stdout);

Просмотреть файл

@ -1,6 +1,6 @@
var exec = require("child_process").exec;
var manifest = require("../vss-extension.json");
var manifest = require("../azure-devops-extension.json");
var extensionId = manifest.id;
var extensionPublisher = manifest.publisher;
var extensionVersion = manifest.version;