cispacempt-v2 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +3 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -89,8 +89,7 @@ const path = require("path"),
|
|
|
89
89
|
module.exports = {
|
|
90
90
|
|
|
91
91
|
parse: async function (ciScript, repoName, fileSystem, tmp = true) {
|
|
92
|
-
|
|
93
|
-
const isRoot = process.getuid && process.getuid() === 0;
|
|
92
|
+
let errorIn = [];
|
|
94
93
|
let finalResult = [];
|
|
95
94
|
let timeTaken;
|
|
96
95
|
let combinedExitCode = 0;
|
|
@@ -174,6 +173,7 @@ module.exports = {
|
|
|
174
173
|
if (result.error) {
|
|
175
174
|
output += `Error: ${result.error}\n`;
|
|
176
175
|
output += `${result.stderr ? result.stderr : ''}\n`;
|
|
176
|
+
!errorIn.includes(stage.name) ? errorIn.push(stage.name) : null;
|
|
177
177
|
} else {
|
|
178
178
|
output += `${result.stdout ? result.stdout : ''}\n`;
|
|
179
179
|
}
|
|
@@ -205,6 +205,7 @@ module.exports = {
|
|
|
205
205
|
version: os.release(),
|
|
206
206
|
arch: os.arch(),
|
|
207
207
|
},
|
|
208
|
+
errorIn: errorIn.length > 0 ? errorIn : null,
|
|
208
209
|
};
|
|
209
210
|
|
|
210
211
|
cleanUpAndRespond(tempDir);
|