checking tmp

This commit is contained in:
Naveenraj M
2020-03-30 02:35:24 +05:30
parent 9019e7252b
commit 12a2b711a3
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@ function run() {
yield exec.exec(`cp -R /github/workspace/ /tmp/${repo}`);
yield exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`);
// Get repo files from /github/workspace/
yield exec.exec('ls -la ');
yield io.cp(`/tmp/${repo}.tar.gz`, '/github/home/rpmbuild/SOURCES/');
yield exec.exec('ls -la /tmp');
yield exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`);
// Copy tar.gz file to /root/rpmbuild/SOURCES
// make sure the name of tar.gz is same as given in Source of spec file
//await io.cp(tarBallPath, '/root/rpmbuild/SOURCES');

View File

@ -30,8 +30,8 @@ async function run() {
await exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`);
// Get repo files from /github/workspace/
await exec.exec('ls -la ');
await io.cp(`/tmp/${repo}.tar.gz`, '/github/home/rpmbuild/SOURCES/');
await exec.exec('ls -la /tmp');
await exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`);
// Copy tar.gz file to /root/rpmbuild/SOURCES
// make sure the name of tar.gz is same as given in Source of spec file