diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a508772 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build + +on: + pull_request: + push: + branches: + - master + - develop + paths-ignore: + - '.github/**' + - README.md + - gradle.properties + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Setup git credentials + uses: oleksiyrudenko/gha-git-credentials@v2 + with: + name: 'reportportal.io' + email: 'support@reportportal.io' + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build with Gradle + id: build + run: | + ./gradlew build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c077461..b0cb800 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,8 @@ on: env: GH_USER_NAME: github.actor - SCRIPTS_VERSION: 5.7.0 - BOM_VERSION: 5.7.0 + SCRIPTS_VERSION: 5.10.0 + BOM_VERSION: 5.11.2 REPOSITORY_URL: 'https://maven.pkg.github.com/' jobs: diff --git a/build.gradle b/build.gradle index e843510..9e2bdc0 100755 --- a/build.gradle +++ b/build.gradle @@ -20,26 +20,17 @@ apply from: scriptsUrl + '/signing.gradle' apply from: scriptsUrl + '/build-quality.gradle' repositories { - mavenCentral() maven { url "https://m2proxy.atlassian.com/repository/public" } - if (releaseMode) { - dependencyRepos.forEach { path -> - maven { - setUrl("https://maven.pkg.github.com/reportportal/${path}") - credentials { - username = findProperty("githubUserName") - password = findProperty("githubToken") - } - } - } - } else { + mavenCentral { url "https://repo1.maven.org/maven2" } + + if (!releaseMode) { maven { url 'https://jitpack.io' } } } dependencyManagement { imports { - mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.github.reportportal:commons-bom:4b7ed8a') + mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.epam.reportportal:commons-bom:5.11.2') } } @@ -51,8 +42,8 @@ dependencies { implementation 'com.epam.reportportal:plugin-api' annotationProcessor 'com.epam.reportportal:plugin-api' } else { - implementation 'com.github.reportportal:plugin-api:886ac55' - annotationProcessor 'com.github.reportportal:plugin-api:886ac55' + implementation 'com.epam.reportportal:plugin-api' + annotationProcessor 'com.epam.reportportal:plugin-api' } compile 'ch.qos.logback:logback-classic:1.2.3' diff --git a/gradle.properties b/gradle.properties index f59407a..4877d9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=5.7.5 +version=5.11.0 description=EPAM Report portal. Jira Integration Plugin diff --git a/src/main/java/com/epam/reportportal/extension/bugtracking/jira/JiraStrategy.java b/src/main/java/com/epam/reportportal/extension/bugtracking/jira/JiraStrategy.java index f5d0f4a..f0728aa 100755 --- a/src/main/java/com/epam/reportportal/extension/bugtracking/jira/JiraStrategy.java +++ b/src/main/java/com/epam/reportportal/extension/bugtracking/jira/JiraStrategy.java @@ -86,6 +86,9 @@ @Component public class JiraStrategy implements ReportPortalExtensionPoint, BtsExtension { + private static final String DOCUMENTATION_LINK_FIELD = "documentationLink"; + private static final String DOCUMENTATION_LINK = "https://reportportal.io/docs/plugins/AtlassianJiraServer"; + private static final Logger LOGGER = LoggerFactory.getLogger(JiraStrategy.class); @Autowired @@ -108,7 +111,9 @@ public class JiraStrategy implements ReportPortalExtensionPoint, BtsExtension { @Override public Map getPluginParams() { - return Collections.emptyMap(); + Map params = new HashMap<>(); + params.put(DOCUMENTATION_LINK_FIELD, DOCUMENTATION_LINK); + return params; } @Override