Skip to content

Commit 5498e1d

Browse files
authored
Users/alextorres/use new common u pack v0 (#18881)
* Updating to use new packaging common version * bumped task version * Built task and fixed imports * bumped task ver (227) * Revert "bumped task ver (227)" This reverts commit 0367feb. * Revert "Revert "bumped task ver (227)"" This reverts commit 85787b0. * bumped timeout
1 parent 8096a33 commit 5498e1d

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

Tasks/UniversalPackagesV0/Tests/L0.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('UniversalPackages Suite', function () {
1010
});
1111

1212
it('downloads package from current organization', function (done: Mocha.Done) {
13-
this.timeout(5000);
1413
let tp = path.join(__dirname, './downloadInternal.js')
1514
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
1615

@@ -21,5 +20,5 @@ describe('UniversalPackages Suite', function () {
2120
assert(tr.succeeded, 'should have succeeded');
2221
assert.equal(tr.errorIssues.length, 0, "should have no errors");
2322
done();
24-
});
23+
}).timeout(10000);
2524
});

Tasks/UniversalPackagesV0/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/UniversalPackagesV0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@types/node": "^16.11.39",
2222
"@types/uuid": "^8.3.0",
2323
"azure-pipelines-task-lib": "^4.1.0",
24-
"azure-pipelines-tasks-packaging-common": "^3.214.0",
24+
"azure-pipelines-tasks-packaging-common": "^3.226.0",
2525
"azure-pipelines-tasks-utility-common": "^3.212.0"
2626
},
2727
"devDependencies": {

Tasks/UniversalPackagesV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"category": "Package",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 218,
12+
"Minor": 227,
1313
"Patch": 0
1414
},
1515
"runsOn": [

Tasks/UniversalPackagesV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"category": "Package",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 218,
12+
"Minor": 227,
1313
"Patch": 0
1414
},
1515
"runsOn": [

Tasks/UniversalPackagesV0/universalpublish.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import * as pkgLocationUtils from "azure-pipelines-tasks-packaging-common/locationUtilities";
2-
import { ProvenanceHelper } from "azure-pipelines-tasks-packaging-common/provenance";
3-
import { getProjectAndFeedIdFromInputParam } from 'azure-pipelines-tasks-packaging-common/util';
4-
import * as telemetry from "azure-pipelines-tasks-utility-common/telemetry";
51
import * as tl from "azure-pipelines-task-lib";
62
import { IExecOptions, IExecSyncResult } from "azure-pipelines-task-lib/toolrunner";
3+
import * as pkgLocationUtils from "azure-pipelines-tasks-packaging-common/locationUtilities";
4+
import { ProvenanceHelper } from "azure-pipelines-tasks-packaging-common/provenance";
75
import * as artifactToolRunner from "azure-pipelines-tasks-packaging-common/universal/ArtifactToolRunner";
86
import * as artifactToolUtilities from "azure-pipelines-tasks-packaging-common/universal/ArtifactToolUtilities";
97
import * as auth from "azure-pipelines-tasks-packaging-common/universal/Authentication";
10-
import { logError } from 'azure-pipelines-tasks-packaging-common/util';
8+
import { getProjectAndFeedIdFromInputParam, logError } from 'azure-pipelines-tasks-packaging-common/util';
9+
import * as telemetry from "azure-pipelines-tasks-utility-common/telemetry";
1110

1211
const packageAlreadyExistsError = 17;
1312
const numRetries = 1;
@@ -218,6 +217,7 @@ async function getNextPackageVersion(
218217
feedId: string,
219218
packageName: string) {
220219
let version: string;
220+
// Will get the highest package version available. Returns 0.0.0 as version if package name contains no versions.
221221
const highestVersion = await artifactToolUtilities.getHighestPackageVersionFromFeed(
222222
feedUri,
223223
accessToken,

0 commit comments

Comments
 (0)