Skip to content

Commit 21e1ac3

Browse files
authored
Remove NPM package definition from tests of JenkinsQueueJobV2 (#16668)
* Remove npm package definition from tests * Remove unused imports in tests * Add scripts for build and test task * Npm audit fix * Bump task version to 2.209.0
1 parent a1b4c3a commit 21e1ac3

File tree

7 files changed

+9
-115
lines changed

7 files changed

+9
-115
lines changed

Tasks/JenkinsQueueJobV2/Tests/L0.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
import assert = require('assert');
55
import path = require('path');
6-
import os = require('os');
76
import process = require('process');
8-
import fs = require('fs');
97
import {JobState, checkStateTransitions} from '../states';
108

119
import * as ttm from 'azure-pipelines-task-lib/mock-test';

Tasks/JenkinsQueueJobV2/Tests/package-lock.json

Lines changed: 0 additions & 90 deletions
This file was deleted.

Tasks/JenkinsQueueJobV2/Tests/package.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

Tasks/JenkinsQueueJobV2/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/JenkinsQueueJobV2/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"bugs": {
1111
"url": "https://github.com/Microsoft/azure-pipelines-tasks/issues"
1212
},
13+
"scripts": {
14+
"build": "node ../../make.js build --task JenkinsQueueJobV2",
15+
"test": "node ../../make.js test --task JenkinsQueueJobV2"
16+
},
1317
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
1418
"dependencies": {
1519
"@types/node": "^10.17.0",

Tasks/JenkinsQueueJobV2/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"demands": [],
1515
"version": {
1616
"Major": 2,
17-
"Minor": 200,
17+
"Minor": 209,
1818
"Patch": 0
1919
},
2020
"groups": [

Tasks/JenkinsQueueJobV2/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"demands": [],
1515
"version": {
1616
"Major": 2,
17-
"Minor": 200,
17+
"Minor": 209,
1818
"Patch": 0
1919
},
2020
"groups": [

0 commit comments

Comments
 (0)