some templates

This commit is contained in:
Primakov Alexandr Alexandrovich 2020-03-12 23:40:47 +03:00
parent fd231b40fc
commit 3de6f2f855
4 changed files with 30 additions and 0 deletions

23
templates/output Normal file
View File

@ -0,0 +1,23 @@
-- shell
mkdir q
rm -r -d ./*
-- copy artifacts
**/*
-- shell
ls;
mv ./${TARGET_FOLDER}/${DEPLOY_VERSION_VAR} ./
BRANCH_NAME=$(cat ${DEPLOY_VERSION_VAR})
rm ${DEPLOY_VERSION_VAR}
echo "branch name is: $BRANCH_NAME"
mkdir $BRANCH_NAME
mv ./${TARGET_FOLDER}/* ./${BRANCH_NAME};
rm -r -d ${TARGET_FOLDER};
ls;
-- copy
// scp -r vars root@46.173.219.236:apps/my

3
templates/start.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/env sh
java -jar jenkins.war --httpPort=8080 &

4
templates/vars Normal file
View File

@ -0,0 +1,4 @@
DEPLOY_VERSION_VAR=jenkins-deploy-file-folder-name.txt
JEN_FILES_TMP_NAME=tmp--jfiles-scripts
JENKINS_SCRIPTS_URL=https://aaprimakov@bitbucket.org/jsadvance20201/jenkins
TARGET_FOLDER=dist