From ab58ced44ac1ad3d1b5f759913212f200f6e69b0 Mon Sep 17 00:00:00 2001 From: AndrewDvizhok Date: Fri, 8 Jan 2021 10:42:29 +0300 Subject: [PATCH 1/6] Update pom.xml to v8.14.0 --- pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index de29c2f..6d28d69 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 ru.mail.jira.plugins uniqueregexfield - 1.2.26-jira8 + 1.2.27-jira8 atlassian-plugin @@ -26,7 +26,7 @@ javax.servlet servlet-api - 2.3 + 2.5 provided @@ -51,7 +51,7 @@ maven-compiler-plugin - 2.3.2 + 3.8.1 1.8 1.8 @@ -61,9 +61,9 @@ - 8.0.0 + 8.14.0 ${jira.version} - 6.3.15 + 6.3.21 false UTF-8 UTF-8 From fdfeb581601876eefc614bdfb75675d70eba52b3 Mon Sep 17 00:00:00 2001 From: AndrewDvizhok Date: Fri, 8 Jan 2021 22:49:31 +0300 Subject: [PATCH 2/6] Build instruction and docker --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 8f126e5..58e5a26 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,34 @@ # Unique Regex Custom Field Custom field that based on text field and allows to match "regular expression" and/or check uniqueness of custom field from JQL. + +## Build application + +Build application from source code. +**Requirements** +- JAVA 1.8 +- Git +- Atlassian SDK + +1. Install [Atlassian Plugin SDK](https://developer.atlassian.com/server/framework/atlassian-sdk/set-up-the-atlassian-plugin-sdk-and-build-a-project/) +2. Download the current source code +3. Open cmd.exe 'Windows'|bash 'Linux', go to the direcory with pom.xml and run atlas-package +4. Compiled jar file will be placed in direcory unique-regex-custom-field\target\uniqueregexfield-'version'.jar + +## Test application + +Build and deploy application. JIRA server will be with development license, bind port 2990 by default. +**Requirements** +- The same as in build plus 2GB memory + +1. Install [Atlassian Plugin SDK](https://developer.atlassian.com/server/framework/atlassian-sdk/set-up-the-atlassian-plugin-sdk-and-build-a-project/) +2. Download the current source code +3. Open cmd.exe 'Windows'|bash 'Linux', go to the direcory with pom.xml and run atlas-run -u 6.3.21 +4. Open JIRA server by [link](http://localhost:2990/jira/). Login name - admin, password - admin + +## Start Jira server with plugin in docker + +Start Jira server with plugin in docker container. The container will automatically deploy the JIRA server, this may take 10 minutes. + +1. Download image: 'docker pull andrewdvizhok/demo-jira:1.0' +2. Run container: 'docker run -t -p 2990:80 -i andrewdvizhok/demo-jira:1.0' From 8485b2f085587b0df377f99dacc4aa77c6e4a408 Mon Sep 17 00:00:00 2001 From: AndrewDvizhok Date: Sat, 9 Jan 2021 09:19:28 +0300 Subject: [PATCH 3/6] Update docker instruction --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 58e5a26..7775931 100644 --- a/README.md +++ b/README.md @@ -31,4 +31,7 @@ Build and deploy application. JIRA server will be with development license, bind Start Jira server with plugin in docker container. The container will automatically deploy the JIRA server, this may take 10 minutes. 1. Download image: 'docker pull andrewdvizhok/demo-jira:1.0' -2. Run container: 'docker run -t -p 2990:80 -i andrewdvizhok/demo-jira:1.0' +2. Run container: 'docker run -t -p 2990:80 -i andrewdvizhok/demo-jira:1.0 /bin/bash' +3. In the docker go to directory /unique-regex-custom-field +4. Run command to start jira server: 'atlas-run -u 6.3.21 -p 80' +5. Run command to build plugin: 'atlas-package' From 8701dc6ad9fa6e98c53de2bb88bc9544b1a3e269 Mon Sep 17 00:00:00 2001 From: AndrewDvizhok Date: Sat, 9 Jan 2021 09:21:25 +0300 Subject: [PATCH 4/6] Create Dockerfile --- docker/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..167e9c6 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,11 @@ +# Dockerfile +# base image +FROM centos:centos8 + +COPY artifactory.repo /etc/yum.repos.d/ +RUN yum clean all &&\ + yum updateinfo metadata &&\ + yum install -y java-1.8.0-openjdk-devel.x86_64 git atlassian-plugin-sdk &&\ + cd / && git clone https://github.com/AndreyVMarkelov/unique-regex-custom-field.git + +ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk From 8bb8af5f018283b2331d352dec196c80f5aa51c5 Mon Sep 17 00:00:00 2001 From: AndrewDvizhok Date: Sat, 9 Jan 2021 09:22:25 +0300 Subject: [PATCH 5/6] Atlassian repo config --- docker/artifactory.repo | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docker/artifactory.repo diff --git a/docker/artifactory.repo b/docker/artifactory.repo new file mode 100644 index 0000000..659bb32 --- /dev/null +++ b/docker/artifactory.repo @@ -0,0 +1,5 @@ +[Artifactory] +name=Artifactory +baseurl=https://packages.atlassian.com/yum/atlassian-sdk-rpm/ +enabled=1 +gpgcheck=0 From 56921efc68c560ab9ca96607e61595863126192e Mon Sep 17 00:00:00 2001 From: AndrewDvizhok Date: Sat, 9 Jan 2021 09:26:34 +0300 Subject: [PATCH 6/6] Dockerfile info --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7775931..84eba7a 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ Build and deploy application. JIRA server will be with development license, bind ## Start Jira server with plugin in docker -Start Jira server with plugin in docker container. The container will automatically deploy the JIRA server, this may take 10 minutes. - +Dockerfile placed in directory docker in the current repository. +Start Jira server with plugin in docker container: 1. Download image: 'docker pull andrewdvizhok/demo-jira:1.0' 2. Run container: 'docker run -t -p 2990:80 -i andrewdvizhok/demo-jira:1.0 /bin/bash' 3. In the docker go to directory /unique-regex-custom-field