print more information
This commit is contained in:
@ -19,6 +19,7 @@ function main () {
|
|||||||
fs.access(repoPath, (err) => {
|
fs.access(repoPath, (err) => {
|
||||||
if(err) {
|
if(err) {
|
||||||
if(err.code !== "ENOENT") throw err;
|
if(err.code !== "ENOENT") throw err;
|
||||||
|
console.log(`cloning git repo ${gitRepo.url}`);
|
||||||
git.clone(gitRepo.url, repoPath, undefined, gitRepo.branch, (err, repo) => {
|
git.clone(gitRepo.url, repoPath, undefined, gitRepo.branch, (err, repo) => {
|
||||||
if(err) throw err;
|
if(err) throw err;
|
||||||
build(repo, repoPath, gitRepo);
|
build(repo, repoPath, gitRepo);
|
||||||
@ -26,6 +27,7 @@ function main () {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let repo = git(repoPath);
|
let repo = git(repoPath);
|
||||||
|
console.log(`pulling git repo ${gitRepo.url}`);
|
||||||
repo.pull(["origin"], gitRepo.branch, (err) => {
|
repo.pull(["origin"], gitRepo.branch, (err) => {
|
||||||
if(err) throw err;
|
if(err) throw err;
|
||||||
build(repo, repoPath, gitRepo);
|
build(repo, repoPath, gitRepo);
|
||||||
@ -53,6 +55,7 @@ function build(repo, repoPath, gitRepo) {
|
|||||||
if(commit.id === newLock.commitId) cbDecrease();
|
if(commit.id === newLock.commitId) cbDecrease();
|
||||||
else {
|
else {
|
||||||
newLock.commitId = commit.id;
|
newLock.commitId = commit.id;
|
||||||
|
console.log(`buidling ${gitRepo.url}`);
|
||||||
childProcess.execFile("gradle", ["build"], {cwd: repoPath}, (err) => {
|
childProcess.execFile("gradle", ["build"], {cwd: repoPath}, (err) => {
|
||||||
if(err) throw err;
|
if(err) throw err;
|
||||||
let buildPath = `${repoPath}/build/libs`;
|
let buildPath = `${repoPath}/build/libs`;
|
||||||
|
|||||||
Reference in New Issue
Block a user