{"id":14984616,"url":"https://github.com/dumasd/jenkins-nexus-plugin","last_synced_at":"2025-10-09T00:14:38.180Z","repository":{"id":249762812,"uuid":"831566207","full_name":"dumasd/jenkins-nexus-plugin","owner":"dumasd","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-09T01:25:47.000Z","size":481,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-09T03:54:53.095Z","etag":null,"topics":["cicd","devops","java","jenkins","jenkins-plugin","nexus-repository","nexus3"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dumasd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-21T00:12:01.000Z","updated_at":"2025-09-09T01:25:20.000Z","dependencies_parsed_at":"2024-10-13T07:41:09.001Z","dependency_job_id":"207553f3-717c-46b1-ad5b-a75e273db4cf","html_url":"https://github.com/dumasd/jenkins-nexus-plugin","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.19047619047619047","last_synced_commit":"a94c00bc92025143e182f7130ba8ba79264bccb0"},"previous_names":["dumasd/jenkins-nexus-plugin"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/dumasd/jenkins-nexus-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fjenkins-nexus-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fjenkins-nexus-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fjenkins-nexus-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fjenkins-nexus-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dumasd","download_url":"https://codeload.github.com/dumasd/jenkins-nexus-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fjenkins-nexus-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000715,"owners_count":26082879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cicd","devops","java","jenkins","jenkins-plugin","nexus-repository","nexus3"],"created_at":"2024-09-24T14:09:20.610Z","updated_at":"2025-10-09T00:14:38.174Z","avatar_url":"https://github.com/dumasd.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins Nexus Plugin\n\n## Introduction\n\nUse the Nexus 3 repository service for artifact management. This plugin only supports Nexus 3.x versions.\n\n## Features\n\n- nexusArtifactPublish: Upload the built artifacts to the Nexus repository service.\n- nexusArtifactDownload: Download artifacts from the Nexus repository service. \n- nexusArtifactDelete: Delete artifacts from the Nexus repository service.\n- nexusArtifactChoices: List of Nexus repository artifact parameters.\n\n## Usage\n\n### Global Configuration\n\n| Parameter     | Parameter name | Parameter description             |\n|---------------|----------------|-----------------------------------|\n| serverId      | Server ID      | Nexus Server ID                   |\n| serverUrl     | Server URL     | Nexus ServerURL                   |\n| credentialsId | Credentials    | Nexus Access Credentials ID       |\n| displayName   | Display Name   | Display Name                      |\n| docker        | Docker         | Weather is this a Docker registry |\n\nIn Jenkins, go to Manage Jenkins → Nexus and configure the Nexus service credentials and endpoint.\n\n\n![img.png](images/img.png)\n\n### nexusArtifactPublish\n\n| Parameter      | Parameter name | Parameter description                            | Required |\n| ------- |--|--------------------------------------------------|----------|\n| serverId   | Server ID | The ID defined in the global configuration       | Y        |\n| repository   | Repository | Repository                                       | Y        |\n| groupId   | GroupId | Group ID                                         | Y        |\n| artifactId   | ArtifactId | Artifact ID                                      | Y        |\n| version   | Version | Version                                          | Y        |\n| generatePom   | Generate Pom | Weather generate maven pom file (Only used in maven2 repo) | N        |\n| packing   | Packing | Maven packing format (only used in maven2 repo）  | N        |\n| includes | Include Files | Include files，`dist/**`   `target/**.jar`        | Y        |\n| excludes | Excludes Files | Execlude files，`*.svg,*.png`                     | N        |\n\n\u003e Tip：Supports publishing artifacts to Nexus repositories in raw and maven2 formats.\n\n#### Freestyle job\n\nIn Add post-build action, select Nexus Artifact Publisher.\n\n![img1.png](images/img1.png)\n\nProvide configuration details:\n\n![img.png](images/img2.png)\n\n#### Pipeline job\n\n``` groovy\npipeline {\n    agent any\n    stages {\n        stage('Hello') {\n            steps {\n                sh '''\n                mkdir -p test\n                echo \"Hello world\" \u003e test/test.txt\n                echo \"foo: bar\" \u003e deploy.yaml\n                tar -czf test.tar.gz -C test .\n                '''\n                nexusArtifactPublish(\n                        serverId: 'nexus-raw',\n                        repository: 'raw-pp',\n                        groupId: 'com.example',\n                        artifactId: 'example-api',\n                        version: '1.0-SNAPSHOT',\n                        includes: '*.tar.gz,*.yaml',\n                        excludes: '*.png')\n            }\n        }\n    }\n}\n```\n\n### nexusArtifactDownload\n\n| Parameter         | Parameter name     | Parameter description         | Required |\n|------------|----------|------------------------|----------|\n| serverId   | Server ID | The ID defined in the global configuration | Y        |\n| repository | Repository | Repository                   | Y        |\n| groupId    | GroupId  | Group ID               | Y        |\n| artifactId | ArtifactId |  Artifact ID           | Y        |\n| version    | Version  |  Version               | Y        |\n| location   | Location | Local download path. If left empty, the default is the root of the workspace. If it is a directory, it must end with a ‘/’. | N        |\n\n\u003e Tip：Supports downloading artifacts from Nexus repositories in raw and maven2 formats.\n\n#### Freestyle job\n\nIn Add build step, select Nexus Artifact Downloader.\n\n![img.png](images/img4-1.png)\n\nProvide configuration details:\n\n![img.png](images/img4-2.png)\n\n#### Pipeline job\n\n```groovy\npipeline {\n    agent any\n    stages {\n        stage('Hello') {\n            steps {\n                nexusArtifactDownload(\n                        serverId: 'nexus-raw',\n                        repository: 'raw-pp',\n                        groupId: 'com.example',\n                        artifactId: 'example-api',\n                        version: '1.0-SNAPSHOT',\n                        location: 'example/')\n                sh 'ls -hl'\n            }\n        }\n    }\n}\n```\n\n### nexusArtifactDelete\n\n| Parameter         | Parameter name      | Parameter description | Required |\n|------------|----------|-----------------------|----|\n| serverId   | Server ID | The ID defined in the global configuration                      | Y  |\n| repository | Repository | Repository                  | Y  |\n| groupId    | GroupId  | Group ID              | Y  |\n| artifactId | ArtifactId | Artifact ID           | Y  |\n| version    | Version  | Version               | Y  |\n\n\u003e Tip：Supports deleting artifacts from Nexus repositories in raw and maven2 formats.\n\n#### Freestyle job\n\nIn Add build step, select Nexus Artifact Deleter。\n\n![img.png](images/img5-1.png)\n\nProvide configuration details:\n\n![img.png](images/img5-2.png)\n\n#### Pipeline job\n\n```groovy\npipeline {\n    agent any\n    stages {\n        stage('Hello') {\n            steps {\n                nexusArtifactDelete(\n                        serverId: 'nexus-raw',\n                        repository: 'raw-pp',\n                        groupId: 'com.example',\n                        artifactId: 'example-api',\n                        version: '1.0-SNAPSHOT')\n            }\n        }\n    }\n}\n```\n\n### nexusArtifactChoices\n\n| Parameter         | Parameter name                                                                | Parameter description                                                                                                                                     | Required |\n|----------|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|----|\n| name     | Name                                                                          | The param name                                                                                                                                            | Y  |\n| serverId | Server ID                                                                     | The ID defined in the global configuration                                                                                                                | Y  |\n| repository | Repository                                                                    | Repository                                                                                                                                                | Y  |\n| groupIdArtifactIds  | GroupId:ArtifactId:[:VersionFilter] (GroupId:ArtifactId[:VersionFilter] List) | Artifact list format: GroupId:ArtifactId[:VersionFilter]. The VersionFilter supports wildcard matching. Multiple entries should be separated by new lines. | Y  |\n| visibleItemCount  | Visible Item Count                                                            | Number of items display in the GroupId:ArtifactId[:VersionFilter] list                                                                                    | Y  |\n| maxVersionCount  | Max Version Count                                                             | Max number of version                                                                                                                                | Y  |\n\n\u003e Tip：Supports choosing artifacts from Nexus repositories in raw and maven2 formats.\n\nCheck `This project is parameterized`, then select `Nexus Artifact Choices Parameter`:\n\n\n![img.png](images/img10-1.png)\n\nProvide configuration details:\n\n![img.png](images/img10-2.png)\n\nAfter running the pipeline, it will download the versions under the specified groupId-artifactId, display them in a list, and allow you to select the artifact version. The selected version will be stored in the environment variable named by the name parameter.\n\n![img.png](images/img10-3.png)\n![img.png](images/img10-4.png)\n![img.png](images/img10-5.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumasd%2Fjenkins-nexus-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdumasd%2Fjenkins-nexus-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumasd%2Fjenkins-nexus-plugin/lists"}