Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epmrpp-84251 || merge to develop #1710

Merged
merged 68 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
b76b884
Update spring boot version to fix CVE-2022-22965
miracle8484 Jun 6, 2022
01fe5dc
EPMRPP-76845 || Update spring boot
miracle8484 Jun 7, 2022
ed6120e
Update Jenkinsfile
miracle8484 Jun 13, 2022
c481ad1
EPMRPP-77678 || Description length increased to 2048
Jun 22, 2022
768c7a2
EPMRPP-77678 || Redundant import fix
Jun 22, 2022
7820419
Merge pull request #1594 from reportportal/EPMRPP-77678-description-l…
miracle8484 Jun 22, 2022
aa59f71
Merge pull request #1602 from reportportal/EPMRPP-76845-update-spring…
miracle8484 Jul 13, 2022
3ac2d97
EPMRPP-79737 || Fix vulnerabilities and update libraries version (#1624)
miracle8484 Sep 28, 2022
2fba8ad
EPMRPP-79136 || Add retrieving all logs with it's locations (#1619)
pbortnik Oct 4, 2022
c0bea88
Update Jenkinsfile-candidate
miracle8484 Oct 6, 2022
d6c4b57
EPMRPP-79136 || Update dao version
pbortnik Oct 7, 2022
65b6ba7
Merge branch '5.7.3' into 5.7.4
miracle8484 Oct 19, 2022
aef005c
EPMRPP-80383 || Notifications. AND/OR attribute option
APiankouski Oct 26, 2022
c59dd03
EPMRPP-80744 || Change email on the API page
IvanKustau Nov 18, 2022
05b1f09
Merge pull request #1637 from reportportal/EPMRPP-80744-change-email-…
IvanKustau Nov 21, 2022
1ebe6bb
EPMRPP-80601 || Timeline widget. Remove empty content
APiankouski Dec 2, 2022
dd41684
Merge pull request #1639 from reportportal/EPMRPP-80601
miracle8484 Dec 7, 2022
3d49bdb
EPMRPP-80744 || Add item attribute max length validation (#1640)
IvanKustau Dec 12, 2022
9b0e2ba
EPMRPP-81136 || Incorrect 'startTime' value is reported for tests via…
APiankouski Dec 15, 2022
fe5b518
EPMRPP-81046 || Impossible to report test items to project with "demo…
APiankouski Dec 15, 2022
c0cd839
EPMRPP-81046 || Impossible to report test items to project with "demo…
APiankouski Dec 15, 2022
4a4fe1c
EPMRPP-81019 || Launch import. Error 'org.hibernate.exception.DataExc…
APiankouski Dec 21, 2022
9e6ba34
Merge branch 'master' into 5.7.5
miracle8484 Dec 26, 2022
0ace9d4
EPMRPP-81052 || Most failed test-cases table (TOP-20). Increase the a…
APiankouski Jan 3, 2023
554613b
EPMRPP-80606 || Cut notification attribute to max length (#1650)
IvanKustau Jan 3, 2023
13a49a6
EPMRPP-81029 || There is no validation for the creation of dashboards…
APiankouski Jan 4, 2023
b156fbf
Revert "EPMRPP-81029 || There is no validation for the creation of da…
APiankouski Jan 4, 2023
ef40d89
EPMRPP-81029 || There is no validation for the creation of dashboards…
APiankouski Jan 4, 2023
2b95c59
EPMRPP-80606 || Update filter attribute cut logic (#1652)
IvanKustau Jan 5, 2023
1e733d3
EPMRPP-78741 || Remove duplicate onboarding endpoint (#1653)
IvanKustau Jan 6, 2023
2e2584c
EPMRPP-80606 || UserFilter cut attribute refactor (#1655)
IvanKustau Jan 9, 2023
620050d
EPMRPP-81358 || Fix vulnerabilities
miracle8484 Jan 16, 2023
127f908
EPMRPP-81193 || Wrong error code and message when creating notificati…
APiankouski Jan 20, 2023
aa75873
Merge pull request #1662 from reportportal/EPMRPP-81358-fix-vulnerabi…
miracle8484 Jan 24, 2023
b94bfd3
EPMRPP-81202 || Widget 'Flaky test cases table (TOP-50). It is possib…
APiankouski Feb 22, 2023
1f86ae9
EPMRPP-82300 || Typo in the error message when creating 'Flaky test c…
rkukharenka Feb 23, 2023
c57cc26
Epmrpp 78258 move acl (#1667)
APiankouski Feb 23, 2023
4f3fb1c
EPMRPP-81050 || Most Failed test-cases table widget. Increase the amo…
APiankouski Feb 23, 2023
0d43c64
EPMRPP-82116 || Update Notification template after launch finish (#1673)
rkukharenka Feb 23, 2023
141d607
Update common model
APiankouski Feb 23, 2023
c737bb5
EPMRPP-81362 || Fix security vulnerabilities (#1671)
IvanKustau Feb 23, 2023
1039292
Merge pull request #1675 from reportportal/EPMRPP-81050-Most_Failed_t…
APiankouski Feb 23, 2023
6b6d953
EPMRPP-82116 || Update Notification template after launch finish (rem…
rkukharenka Feb 27, 2023
7009281
EPMRPP-81154 added xml to api description and added file size check (…
rkukharenka Feb 27, 2023
06a887d
EPMRPP-81970 || Autocomplete in Recipients filed on Notifications tab…
rkukharenka Mar 2, 2023
c02fda5
EPMRPP-82375 || Implement notification when changing password and mak…
rkukharenka Mar 6, 2023
2a6f1de
EPMRPP-82375 minor change in index template (#1683)
rkukharenka Mar 6, 2023
ffa3b9e
EPMRPP-82545 || Update validation for Widgets (#1694)
rkukharenka Mar 29, 2023
3ddb52e
Update commons dao
IvanKustau Apr 5, 2023
c201013
Master merge to 5.7.5 (#1695)
IvanKustau Apr 5, 2023
94df5c6
EPMRPP-83030 || Create RC branch
APiankouski Apr 11, 2023
99c5c0a
Update version
APiankouski Apr 12, 2023
a3043ba
EPMRPP-82707 || Add single bucket configuration (#1696)
IvanKustau Apr 13, 2023
4e9cdfb
EPMRPP-82707 || Change delete plguin from data store logic
IvanKustau Apr 20, 2023
b71b8f0
EPMRPP-83068 || Fix checkstyle
APiankouski Apr 26, 2023
d8b8629
EPMRPP-83068 || Update Admin permissions. Read/Write permissions with…
APiankouski Apr 26, 2023
4de12a8
Merge master to hotfix/next (#1702)
APiankouski May 17, 2023
7eb1690
Update commons-dao version
IvanKustau May 18, 2023
00fd362
Add removeScripts task to Jenkins
IvanKustau May 18, 2023
7867051
Epmrpp 83130 || Update the token generation and its storage (#1706)
APiankouski May 23, 2023
a07bfc1
Create Jenkinsfile-release
hlebkanonik May 25, 2023
66746e5
Epmrpp 83130 || api key trim (#1707)
APiankouski May 26, 2023
453723b
EPMRPP-83098 || Update all datastore variables naming (#1709)
IvanKustau May 29, 2023
2852ef3
EPMRPP-83536 || Reporting with new API Keys (#1708)
APiankouski Jun 5, 2023
88b9dac
EPMRPP-84251 || Merge hotfix/next branch into develop
APiankouski Jun 6, 2023
e586812
EPMRPP-84251 || Fix test
APiankouski Jun 7, 2023
174427a
EPMRPP-84251 || Fix test
APiankouski Jun 7, 2023
0757473
EPMRPP-84251 || Decrease branch limits
APiankouski Jun 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
env:
GH_USER_NAME: github.actor
SCRIPTS_VERSION: 5.7.0
BOM_VERSION: 5.7.4
MIGRATIONS_VERSION: 5.7.3
RELEASE_VERSION: 5.7.4
BOM_VERSION: 5.7.5
MIGRATIONS_VERSION: 5.8.0
RELEASE_VERSION: 5.8.0
REPOSITORY_URL: 'https://maven.pkg.github.com/'

jobs:
Expand Down
106 changes: 37 additions & 69 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Changelog

## 2.6.0

##### Released: 17 October 2016

### New Features

* Initial release to Public Maven Repositories
* DockerHub Release
* DockerHub Release
* Introduce Personal Spaces

### Bugfixes
Expand All @@ -20,7 +19,6 @@
* EPMRPP-20926 - Don't allow to create project with type = Personal

## 2.7.0

##### Released: XXX October 2016

### New Features
Expand All @@ -38,24 +36,24 @@
* EPMRPP-22340 - API: It's possible to delete project with entryType=UPSA
* reportportal/reportportal#9 - Fix incorrect statistics calculation

## 2.7.1

## 2.7.1
##### Released: 21 October 2016

### Bugfixes

* Minor fix: incorrect project version in /info endpoint

## 2.7.2

## 2.7.2
##### Released: 22 October 2016

### Bugfixes

* Expose JVM args as ENV variable to make it configurable
* Expose JVM args as ENV variable to make it configurable

## 3.0.0

## 3.0.0
##### Released: Apr 20, 2017

### New Features
Expand All @@ -66,44 +64,35 @@

### Bugfixes

* EPMRPP-23001 - In case login contains only underscore symbol the unclassified error (500) is
returned
* EPMRPP-23342 - Permissions: User with not admin account role is able to get list of users of PR if
using search
* EPMRPP-23541 - Widget is not become shared after changing option of the dashboard via Edit
Dashboard.
* EPMRPP-23001 - In case login contains only underscore symbol the unclassified error (500) is returned
* EPMRPP-23342 - Permissions: User with not admin account role is able to get list of users of PR if using search
* EPMRPP-23541 - Widget is not become shared after changing option of the dashboard via Edit Dashboard.
* EPMRPP-23564 - GET shared dashboard request does not contain 'description' parameter
* EPMRPP-23197 - Email server: Add field for Sender address on server settings
* EPMRPP-23601 - 'External-system' parameter is missed for GET ticket request of posted bug in case
launches were merged
* EPMRPP-23651 - The sender of email of user invitation is not the same as was set on Email server
settings
* EPMRPP-23664 - Sender of email notification of finish launch is not the same as mentioned on
Project settings page
* EPMRPP-23601 - 'External-system' parameter is missed for GET ticket request of posted bug in case launches were merged
* EPMRPP-23651 - The sender of email of user invitation is not the same as was set on Email server settings
* EPMRPP-23664 - Sender of email notification of finish launch is not the same as mentioned on Project settings page
* EPMRPP-23459 - test log item time after parent item's start time
* reportportal#64 - Please correct limitation: test log item time after parent item's start time
* EPMRPP-23679 - Unclassified error for long search string by digital filter such as Total, Passed,
Faled, etc.
* EPMRPP-23679 - Unclassified error for long search string by digital filter such as Total, Passed, Faled, etc.
* EPMRPP-23680 - Unclassified error when searching for launch with special sybmols in its name
* EPMRPP-21270 - Launches: Sorting for defect statistics works incorrectly
* EPMRPP-23641 - DASHBOARDS: Description disappeared after refresh
* EPMRPP-23691 - WS: To combine 'from' using sender name and email when the notification is sending
* EPMRPP-20425 - Allow to delete Not own dashboards/widgets/filters by PM
* EPMRPP-23076 - Script for deleting favorite dashboards with new implementation
* EPMRPP-23741 - Update the info from RP notification center in invitation email
* EPMRPP-23744 - Error handling: When the invitation is sent to email address that already available
in DB, ws returns incorrect error message
* EPMRPP-23744 - Error handling: When the invitation is sent to email address that already available in DB, ws returns incorrect error message
* EPMRPP-23468 - User with project role=PM/LEAD unable to invite user
* EPMRPP-23692 - Demo data: fix line-breakes in Logs
* EPMRPP-24570 - Status statistics is not updated in case user deletes items from SUITE/TEST levels
* EPMRPP-24914 - Item with investigated defect type only is not included in scope of analysis
* reportportal#31/EPMRPP-25006 - Widget limits clear up
* reportportal#92 - Fixed negative value int the "TI" counter for merged launch
* EPMRPP-25255 - Personal projects have TEST_BASES calculation strategy (BDD) instead of
STEP_BASED (regular)
* EPMRPP-25255 - Personal projects have TEST_BASES calculation strategy (BDD) instead of STEP_BASED (regular)

## 3.1.0

## 3.1.0
##### Released: Aug 5, 2017

### New Features
Expand All @@ -114,8 +103,7 @@
* EPMRPP-26010 - Implemented Passing rate widget
* EPMRPP-26021 - Hash for unique instance generating by server
* reportportal#176/EPMRPP-26045 - Split Test Description and test parameters
* EPMRPP-26131 - Unique id for test item based on items' names, parameters, launch name, project
name
* EPMRPP-26131 - Unique id for test item based on items' names, parameters, launch name, project name
* EPMRPP-26263 - Implemented latest launches view
* EPMRPP-26394 - JIRA issue with empty set of fields for post bug form

Expand All @@ -124,16 +112,14 @@
* EPMRPP-25346 - WS: No email notification letter on launch finished is received
* EPMRPP-24913 - Demo Data Postfix should be unique
* EPMRPP-25247 - Admin is not able to modify his own role on the project
* EPMRPP-23287 - Issues (defects) statistics should be calculated by Tests and not by Steps with
test based strategy
* EPMRPP-23287 - Issues (defects) statistics should be calculated by Tests and not by Steps with test based strategy
* EPMRPP-25434 - Remove attached logo from email letter
* EPMRPP-25424 - Request with empty recipients are sent to server with set notifications to OFF
* EPMRPP-25433 - No custom defects are in the email letter on launch finished.
* EPMRPP-25474 - Filtering: No suggestion results for search by owner of the launch
* EPMRPP-25506 - Deleted by PM not own shared widget is not removed from the system (DB)
* EPMRPP-25320 - Internal project is replaced with personal in case they have identical names
* EPMRPP-24853 - Next, Previous items should contain only visible items in case 'Collapse
precondition methods' functionality is ON
* EPMRPP-25320 - Internal project is replaced with personal in case they have identical names
* EPMRPP-24853 - Next, Previous items should contain only visible items in case 'Collapse precondition methods' functionality is ON
* EPMRPP-25526 - Unshared filter is still shown on Launches page for not owner
* EPMRPP-25476 - WS: Make 'share'/'isShare' parameter written the same for POST and GET methods
* EPMRPP-25782 - Share option of widgets is not saved on backend
Expand All @@ -147,8 +133,8 @@
* reportportal/reportportal#12, reportportal/reportportal#65 - LDAP Authorization
* reportportal/reportportal#208 - Introduce new project role that is not allowed to report

## 3.2

## 3.2
##### Released: Aug XXX, 2017

### New Features
Expand All @@ -158,22 +144,19 @@
* EPMRPP-29222 - Introduce LDAP authorization

### Bugfixes

* reportportal/reportportal#170 - Test run breaks with unclassified error (jbehave) #170
* reportportal#176/EPMRPP-26045 - Split Test Description and test parameters
* EPMRPP-29167 - Statistics for deleted elements with custom defect types are still present
* EPMRPP-26131 - Unique id for test item based on items' names, parameters, launch name, project
name
* EPMRPP-26131 - Unique id for test item based on items' names, parameters, launch name, project name
* EPMRPP-26263 - Implemented latest launches view
* EPMRPP-26394 - JIRA issue with empty set of fields for post bug form
* EPMRPP-29345 - Description and tags are not applied in case they were specified on finishLaunch
* EPMRPP-29361 - No content of "Overall statistics" widget created for Demo DataUI
* EPMRPP-29405 - WS: Widget with Latest launches=ON includes launches from Debug
* EPMRPP-29337 - Widgets with Latest Launches ON include statistics for launches with In Progress
status
* EPMRPP-29337 - Widgets with Latest Launches ON include statistics for launches with In Progress status

## 3.3

## 3.3
##### Released: XXX XX, 2017

### New Features
Expand All @@ -191,7 +174,6 @@
* EPMRPP-29701: Tag prefix should be fully matched with the searched value

## 4.0

##### Released: Mar 01, 2018

### New Features
Expand All @@ -203,7 +185,7 @@
* EPMRPP-31220 - WS: removing Match issue
* EPMRPP-31189 - Update script for widgets.
* EPMRPP-31780 - Set the name of analyzer which made the changes
* EPMRPP-33154 - [IMPORT] Better handling of importing exceptions
* EPMRPP-33154 - [IMPORT] Better handling of importing exceptions
* reportportal/reportportal#322 - Make startTestItemRQ in API 4.x case insensitive

### Bugfixes
Expand All @@ -212,19 +194,15 @@
* EPMRPP-31020 - Launches reported to DEFAULT mode are present in DEBUG as well
* reportportal/reportportal#245 - Default TestNG xml report isn't compatible with RP report
* EPMRPP-29701 - Tag prefix should be fully matched with the searched value
* EPMRPP-31156 - Different launches comparison chart should include only last 2 launches despite
sorting of the filter
* EPMRPP-31156 - Different launches comparison chart should include only last 2 launches despite sorting of the filter
* EPMRPP-31039 - WS: Results of items on history table do not have sorting in Asc order
* EPMRPP-31188 - [DASHBOARD] Owner can't see owned widgets in "SELECT SHARED WIDGET" list #213
* EPMRPP-31308 - [WS]: Add a constrain for a notification [GITHUB] Notifications rule for rp.mode
#249
* EPMRPP-31233 - [IMPORT] Status is always PASSED if parent item has children with different
statuses
* EPMRPP-31308 - [WS]: Add a constrain for a notification [GITHUB] Notifications rule for rp.mode #249
* EPMRPP-31233 - [IMPORT] Status is always PASSED if parent item has children with different statuses
* EPMRPP-29375 - WS: Search for user with dot symbol in login name returns the error
* EPMRPP-31211 - In case the tag contains (") symbols, the filter does not have got any value
* EPMRPP-31208 - Email template: Tags with special symbols do not work correctly
* EPMRPP-25622 - Posted bug is not added to item activity in case it was submitted via bulk
operation
* EPMRPP-25622 - Posted bug is not added to item activity in case it was submitted via bulk operation
* EPMRPP-31435 - 'Ignore in AA' should not to be set for test item in launch on DEBUG level
* EPMRPP-31447 - WS: "ActionType"=analyze_item for action that was done by user
* Fix issue with incorrect importing of some junit files
Expand All @@ -240,7 +218,6 @@
* EPMRPP-33492 - WS: Logs of launches from DEBUG level are get to ES during the indexing

## 4.2

##### Released: Jun 14, 2018

### Bugfixes
Expand All @@ -251,54 +228,45 @@
* EPMRPP-34212 - WS: No action for linked issue by ML on History of actions

## 4.3

##### Released: 2018

### Bugfixes

* EPMRPP-35134 - Registration is passed for user with login already in use
* EPMRPP-35289 - WS: GET item controller returns items that do not belong to specified project, but
all available items
* EPMRPP-35289 - WS: GET item controller returns items that do not belong to specified project, but all available items
* EPMRPP-35291 - WS: Unclassified error on get latest launches. Improve latest query performance

## 5.0.0

### Bugfixes


* EPMRPP-39590 - Restore of the password. Incorrect response from repeated request.
* EPMRPP-40298 - API. Global Email server integration (Gmail). Incorrect number of emails deliver to
the mailbox.
* EPMRPP-41407 - Filters page. Unclassified error occurs when user turns filters On/Off in 2 browser
tabs
* EPMRPP-41361 - All launches and not 'Launches with the same name' applied in case of automatic
analysis on finish launch
* EPMRPP-40298 - API. Global Email server integration (Gmail). Incorrect number of emails deliver to the mailbox.
* EPMRPP-41407 - Filters page. Unclassified error occurs when user turns filters On/Off in 2 browser tabs
* EPMRPP-41361 - All launches and not 'Launches with the same name' applied in case of automatic analysis on finish launch
* EPMRPP-41388 - Level of log is not sent to 'Edit defect type' modal.
* EPMRPP-41569 - 'AA' flag is shown on UI despite the last action (link issue) was done by user
* EPMRPP-41055 - Incorrect response (500 error) in Launches page after deleting member from the
project.
* EPMRPP-41055 - Incorrect response (500 error) in Launches page after deleting member from the project.
* EPMRPP-39525 - Launches and filters are not shown for project if it has name 'project'
* EPMRPP-40808 - Dashboard. PM can't delete not own shared dashboard
* EPMRPP-41168 - Admin can't delete test items on the Step View
* EPMRPP-42274 - History of actions. No actions are displayed for items analyzed manually.
* EPMRPP-35338 - Add number of run to launch name on widgets for the particular launch.
* EPMRPP-42004 - Step level. Unclassified error on bulk post/link issue
* EPMRPP-42337 - 'Issue' parameter should not be available for items without issue type or items
have status Passed.
* EPMRPP-42337 - 'Issue' parameter should not be available for items without issue type or items have status Passed.

## 5.3.0

## 5.3.0
##### Released: XXX

### New Features

* EPMRPP-52161 - Parent line recalculation (Topliner)

### Bugfixes

* reportportal/reportportal#773 - Service-API errors when user does not have a photo
* EPMRPP-50276 - Auto-test issue/ When delete user - ACL cache should be cleaned up
* EPMRPP-49121 - Validation message should appear in case global integration of email server is not
setup
* EPMRPP-49121 - Validation message should appear in case global integration of email server is not setup
* EPMRPP-52660 - Add launches filtering by items with issues inside
* reportportal/reportportal#995 - Timezone unsynced between "LAUNCHES" and "DASHBOARD"

9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine:latest
FROM amazoncorretto:11.0.17
LABEL version=5.7.4 description="EPAM Report portal. Main API Service" maintainer="Andrei Varabyeu <andrei_varabyeu@epam.com>, Hleb Kanonik <hleb_kanonik@epam.com>"
ARG GH_TOKEN
RUN apk -U -q upgrade && apk --no-cache -q add fontconfig font-noto openjdk11 ca-certificates && \
echo 'exec java ${JAVA_OPTS} -jar service-api-5.7.4-exec.jar' > /start.sh && chmod +x /start.sh && \
wget --header="Authorization: Bearer ${GH_TOKEN}" -q https://maven.pkg.github.com/reportportal/service-api/com/epam/reportportal/service-api/5.7.4/service-api-5.7.4-exec.jar
ARG GH_URL=https://__:$GH_TOKEN@maven.pkg.github.com/reportportal/service-api/com/epam/reportportal/service-api/5.7.4/service-api-5.7.4-exec.jar
RUN curl -O -L $GH_URL \
--output service-api-5.7.4-exec.jar && \
echo 'exec java ${JAVA_OPTS} -jar service-api-5.7.4-exec.jar' > /start.sh && chmod +x /start.sh
ENV JAVA_OPTS="-Xmx1g -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=70 -Djava.security.egd=file:/dev/./urandom"
VOLUME ["/tmp"]
EXPOSE 8080
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile-candidate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!groovy
properties([
parameters([
parameters ([
string(
name: "VERSION",
defaultValue: "",
Expand Down
42 changes: 42 additions & 0 deletions Jenkinsfile-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
pipeline {
agent any

environment {
JAVA_HOME = "${tool 'openjdk-11'}"
PATH = "${env.JAVA_HOME}/bin:${env.PATH}"
DOCKERHUB = credentials('dockerhub')
GITHUB = credentials('github_token')
}

stages {
stage('Assemble') {
steps {
sh './gradlew clean assemble -P buildNumber=$VERSION'
}
}

stage('Test') {
steps {
sh './gradlew test --full-stacktrace'
}
}

stage('Build Artifact'){
steps{
sh './gradlew build -PreleaseMode=true -PgithubUserName=$GITHUB_USR -PgithubToken=$GITHUB_PSW -Pscripts.version=master -Pmigrations.version=master -Pbom.version=$VERSION'
}
}

stage('Build Docker Image'){
steps{
sh './gradlew buildDocker -P dockerTag=reportportal/service-api:$VERSION'
}
}

stage('Push to DockerHub') {
steps {
sh 'echo $DOCKERHUB_PSW | docker login -u $DOCKERHUB_USR --password-stdin && docker push reportportal/service-api:$VERSION'
}
}
}
}
Loading