mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
fix script
This commit is contained in:
@@ -17,6 +17,8 @@ let TIMEOUT = 1000;
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
|
||||||
|
console.log('---START---');
|
||||||
|
|
||||||
program
|
program
|
||||||
.version('0.1.0')
|
.version('0.1.0')
|
||||||
.option('--host [type]', 'Remote environment host adf.lab.com ')
|
.option('--host [type]', 'Remote environment host adf.lab.com ')
|
||||||
@@ -44,6 +46,8 @@ async function main() {
|
|||||||
|
|
||||||
host = program.host;
|
host = program.host;
|
||||||
|
|
||||||
|
console.log('---Login---');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.alfrescoJsApi = new alfrescoApi.AlfrescoApiCompatibility(config);
|
this.alfrescoJsApi = new alfrescoApi.AlfrescoApiCompatibility(config);
|
||||||
await this.alfrescoJsApi.login(program.username, program.password);
|
await this.alfrescoJsApi.login(program.username, program.password);
|
||||||
@@ -51,6 +55,9 @@ async function main() {
|
|||||||
console.log('Login error' + e);
|
console.log('Login error' + e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('---Login ok---');
|
||||||
|
|
||||||
|
|
||||||
await deployAbsentApps(this.alfrescoJsApi);
|
await deployAbsentApps(this.alfrescoJsApi);
|
||||||
|
|
||||||
let pushFailed = await getPushFailedApps(this.alfrescoJsApi);
|
let pushFailed = await getPushFailedApps(this.alfrescoJsApi);
|
||||||
|
@@ -7,7 +7,7 @@ TEMP_GENERATOR_DIR=".tmp-generator";
|
|||||||
VERSION=$(npm view @alfresco/adf-core@beta version)
|
VERSION=$(npm view @alfresco/adf-core@beta version)
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: update-generator.sh"
|
echo "Usage: update-project.sh"
|
||||||
echo ""
|
echo ""
|
||||||
echo "-t or --token Github ouath token"
|
echo "-t or --token Github ouath token"
|
||||||
echo "-n or --name Github name of the project"
|
echo "-n or --name Github name of the project"
|
||||||
@@ -43,7 +43,7 @@ git clone https://$TOKEN@github.com/$NAME_REPO.git $TEMP_GENERATOR_DIR
|
|||||||
cd $TEMP_GENERATOR_DIR
|
cd $TEMP_GENERATOR_DIR
|
||||||
git checkout development
|
git checkout development
|
||||||
|
|
||||||
BRANCH="generator-update-beta-$VERSION"
|
BRANCH="ADF-update-beta-$VERSION"
|
||||||
git checkout -b $BRANCH
|
git checkout -b $BRANCH
|
||||||
|
|
||||||
if $GNU; then
|
if $GNU; then
|
||||||
|
Reference in New Issue
Block a user