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

Add Pom File option to Artifact. This adds dependency information to… #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vilvic
Copy link

@vilvic vilvic commented Nov 13, 2018

… Nexus artifacts.

This is in relation to bug listed here

I came across a similar issue when building a project in jenkins when an artifact couldn't find the pom file and showing the following message in the build output.

The pom for <artifact> is missing, no dependency information available

@rwilcox
Copy link

rwilcox commented Jan 12, 2019

Ok, I'll bite / am curious for my own personal knowledge: can't you just do this manually like so?

nexusArtifactUploader(
        nexusVersion: 'nexus3',
        protocol: 'https', 
        nexusUrl: nexusSourceRepo,
        groupId: groupId,
        version: version, 
        repository: repositoryType,
        credentialsId: 'nexus-login',
        artifacts: [ 
            [ artifactId: theName,
                type: extension,
                file: "target/${theName}.${extension}"
            ],
            [
                artifactId: theName,
                type: "pom",
                file: "pom.xml"
            ]
        ]
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants