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