From 3de6f2f85515d7604cc1434887cb76f48e5737a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BC=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Thu, 12 Mar 2020 23:40:47 +0300 Subject: [PATCH] some templates --- template => templates/build | 0 templates/output | 23 +++++++++++++++++++++++ templates/start.sh | 3 +++ templates/vars | 4 ++++ 4 files changed, 30 insertions(+) rename template => templates/build (100%) create mode 100644 templates/output create mode 100644 templates/start.sh create mode 100644 templates/vars diff --git a/template b/templates/build similarity index 100% rename from template rename to templates/build diff --git a/templates/output b/templates/output new file mode 100644 index 0000000..73d9dd3 --- /dev/null +++ b/templates/output @@ -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 \ No newline at end of file diff --git a/templates/start.sh b/templates/start.sh new file mode 100644 index 0000000..fedbd32 --- /dev/null +++ b/templates/start.sh @@ -0,0 +1,3 @@ +#!/bin/env sh + +java -jar jenkins.war --httpPort=8080 & diff --git a/templates/vars b/templates/vars new file mode 100644 index 0000000..73ef958 --- /dev/null +++ b/templates/vars @@ -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