diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..7e7942e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @jenkinsci/gitlab-oauth-plugin-developers diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2fb1510 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..71c7255 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,3 @@ +# https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc +_extends: .github +tag-template: gitlab-oauth-$NEXT_MINOR_VERSION diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..50a6433 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +# Automates creation of Release Drafts using Release Drafter +# More Info: https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc + +on: + push: + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5.13.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 0000000..43d6281 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,7 @@ + + + io.jenkins.tools.incrementals + git-changelist-maven-extension + 1.2 + + diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000..2a0299c --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1,2 @@ +-Pconsume-incrementals +-Pmight-produce-incrementals diff --git a/Jenkinsfile b/Jenkinsfile index 1341626..5cc662c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,15 @@ -#!groovy -//from global library https://github.com/jenkins-infra/pipeline-library -buildPlugin() +/* + * See the documentation for more options: + * https://github.com/jenkins-infra/pipeline-library/ + */ +buildPlugin(useContainerAgent: true, configurations: [ + // Test the long-term support end of the compatibility spectrum (i.e., the minimum required + // Jenkins version). + [ platform: 'linux', jdk: '8', jenkins: null ], + + // Test the common case (i.e., a recent LTS release). + [ platform: 'linux', jdk: '8', jenkins: '2.303.1' ], + + // Test the bleeding edge of the compatibility spectrum (i.e., the latest supported Java runtime). + [ platform: 'linux', jdk: '11', jenkins: '2.303.1' ], +]) diff --git a/pom.xml b/pom.xml index 71d5346..685c02d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,30 +4,28 @@ org.jenkins-ci.plugins plugin - 3.2 + 4.25 gitlab-oauth - 1.12-SNAPSHOT + ${revision}${changelist} hpi - 2.89.2 + 1.12 + -SNAPSHOT + 2.222.4 8 - + jenkinsci/${project.artifactId}-plugin UTF-8 UTF-8 Gitlab Authentication plugin A Jenkins authentication plugin that delegates to gitlab. We also implement an Authorization Strategy that users the acquired OAuth token to interact with the Gitlab API to determine a users level of access to Jenkins. - https://github.com/jenkinsci/gitlab-oauth-plugin/blob/master/docs/README.md - + https://github.com/jenkinsci/${project.artifactId}-plugin MIT License - http://opensource.org/licenses/MIT + https://opensource.org/licenses/MIT @@ -45,11 +43,11 @@ - scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git - scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git - https://github.com/jenkinsci/${project.artifactId}-plugin - HEAD - + scm:git:git://github.com/${gitHubRepo}.git + scm:git:git@github.com:${gitHubRepo}.git + https://github.com/${gitHubRepo} + ${scmTag} + @@ -66,10 +64,17 @@ + + io.jenkins.tools.bom + bom-2.222.x + 887.vae9c8ac09ff7 + import + pom + org.slf4j slf4j-api - 1.7.30 + 1.8.0-beta2 @@ -77,22 +82,36 @@ org.jenkins-ci.plugins mailer - 1.20 org.gitlab java-gitlab-api 4.1.1 - - - org.jenkins-ci - annotation-indexer - 1.12 + + + + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.core + jackson-databind + + + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 + + org.jenkins-ci.plugins git - 3.6.4 + + + org.jenkins-ci.plugins + jackson2-api