-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Blackbaud-LeoWanderer/master
Upgrade node version
- Loading branch information
Showing
22 changed files
with
6,018 additions
and
2,410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import path = require('path'); | ||
import fs = require('fs-extra'); | ||
import tl = require('vsts-task-lib/task'); | ||
import {recursiveProcessing} from './common/expandJObject'; | ||
import fs = require("fs-extra"); | ||
import tl = require("azure-pipelines-task-lib"); | ||
import { recursiveProcessing } from "./common/expandJObject"; | ||
|
||
try { | ||
var source = tl.getPathInput("JsonSource"); | ||
var variablePrefix = tl.getInput("VariablePrefix"); | ||
var isSecret = tl.getBoolInput("MarkAsSecret"); | ||
try { | ||
let source = tl.getPathInput("JsonSource"); | ||
let variablePrefix = tl.getInput("VariablePrefix"); | ||
let isSecret = tl.getBoolInput("MarkAsSecret"); | ||
|
||
var content = fs.readFileSync(source, { encoding: 'utf8' }); | ||
var jObject = JSON.parse(content); | ||
let content = fs.readFileSync(source, { encoding: "utf8" }); | ||
let jObject = JSON.parse(content); | ||
|
||
recursiveProcessing(jObject, variablePrefix, isSecret); | ||
|
||
tl.setResult(tl.TaskResult.Succeeded, "Variables loaded"); | ||
|
||
} catch (err) { | ||
// tslint:disable-next-line: no-console | ||
console.error(String(err)); | ||
tl.setResult(tl.TaskResult.Failed, String(err)); | ||
} |
Oops, something went wrong.