trim inside scope

This commit is contained in:
Naveenraj M
2020-03-30 15:08:23 +05:30
parent 12c4708eec
commit 1b359d3c39
2 changed files with 2 additions and 4 deletions

View File

@ -63,11 +63,10 @@ function run() {
else { else {
// the *entire* stdout and stderr (buffered) // the *entire* stdout and stderr (buffered)
console.log(`stdout: ${stdout}`); console.log(`stdout: ${stdout}`);
myOutput = myOutput + `${stdout}`; myOutput = myOutput + `${stdout}`.trim();
console.log(`stderr: ${stderr}`); console.log(`stderr: ${stderr}`);
} }
}); });
myOutput = myOutput.trim();
// only contents of workspace can be changed by actions and used by subsequent actions // only contents of workspace can be changed by actions and used by subsequent actions
// So copy all generated rpms into workspace , and publish output path relative to workspace // So copy all generated rpms into workspace , and publish output path relative to workspace
yield exec.exec(`mkdir -p rpmbuild/SRPMS`); yield exec.exec(`mkdir -p rpmbuild/SRPMS`);

View File

@ -70,12 +70,11 @@ async function run() {
} else { } else {
// the *entire* stdout and stderr (buffered) // the *entire* stdout and stderr (buffered)
console.log(`stdout: ${stdout}`); console.log(`stdout: ${stdout}`);
myOutput = myOutput+`${stdout}`; myOutput = myOutput+`${stdout}`.trim();
console.log(`stderr: ${stderr}`); console.log(`stderr: ${stderr}`);
} }
}); });
myOutput = myOutput.trim();
// only contents of workspace can be changed by actions and used by subsequent actions // only contents of workspace can be changed by actions and used by subsequent actions
// So copy all generated rpms into workspace , and publish output path relative to workspace // So copy all generated rpms into workspace , and publish output path relative to workspace