Groovy
You're viewing a free preview. Sign in free to read every script.
Why this exists The build should produce an artifact once, and every environment should deploy that same file. Publishing it to Nexus under a unique path (project and build number) is what makes that possible. This…
nexus.groovy: Publishing Build Artifacts
A stage file that uploads a build artifact to a Nexus repository with curl, using Jenkins credentials safely, refusing to overwrite an existing version unless told to, and working on both Linux and Windows agents.
Sign in free to read this script, along with the rest of the library.
Sign in free