sonatype-nexus-community / circleci-nexus-orb Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
I'm trying to set up circleCI for maven project and while using orb nexus-orb: sonatype/[email protected]
catch error
error: Missing argument for option: u
usage: Repository
-A <key=value> Asset attributes, can be used multiple times.
Example: -Aextension=jar -Aclassifier=bin
-C <key=value> Component coordinates, can be used multiple
times. Example: -CgroupId=com.example
-CartifactId=myapp -Cversion=1.0
-f,--format <arg> Artifact format. Examples: maven2
--filename <arg> Filename to upload
-h,--help Prints this help text
-p,--password <arg> Password
-r,--repository <arg> Name of target repository on Nexus. Example:
maven-releases
--serverurl <arg> URL of nexus repository manager server
--tagname <arg> The tag to apply (tag must already exist)
-u,--username <arg> Username
Exited with code exit status 1
My circleCi config file:
version: 2.1
orbs:
maven: circleci/[email protected]
nexus-orb: sonatype/[email protected]
workflows:
main:
jobs:
- nexus-orb/nexusjob:
username: '${NEXUS_USERNAME}'
password: '${NEXUS_PASSWORD}'
serverurl: 'https://nexus.dev.********/repository/'
repository: 'maven-releases/'
As I understand I configured all correctly
Nexus ORB fails to download https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.5.3.zip due to to Bintray being shutdown. As a result, no more artifacts can be published onto Nexus with CircleCI.
See details on: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
So the CI ORB should fetch apache-groovy-binary-2.5.3.zip from a new download location. Also it would be helpful to have a configuration option to define an alternate download location.
ORB version: sonatype/[email protected]
Log output of the error:
#!/bin/bash -eo pipefail
curl -L https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.5.3.zip -o apache-groovy-binary.zip
mkdir -p ${CIRCLE_WORKING_DIRECTORY}/sonatype/bin || true
curl -L https://raw.githubusercontent.com/sonatype-nexus-community/docker-nexus-platform-cli/master/src/main/groovy/NexusPublisher.groovy -o ${CIRCLE_WORKING_DIRECTORY}/sonatype/bin/NexusPublisher.groovy
unzip apache-groovy-binary.zip
mv groovy-2.5.3 groovy
echo PATH=${PATH}:${CIRCLE_WORKING_DIRECTORY}/groovy/bin/ > setup.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10 100 10 0 0 31 0 --:--:-- --:--:-- --:--:-- 31
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3235 100 3235 0 0 42565 0 --:--:-- --:--:-- --:--:-- 42565
Archive: apache-groovy-binary.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of apache-groovy-binary.zip or
apache-groovy-binary.zip.zip, and cannot find apache-groovy-binary.zip.ZIP, period.
Exited with code exit status 9
CircleCI received exit code 9
Update
Created PR with a quick fix.
The new download link is valid, and the ZIP has the correct folder structure inside.
When I use this orb with CircleCI. After it's successfully build the jar to my private nexus repository. Then I use it in another gradle project. And import it as:
implementation "com.mycompany:common:0.0.1"
However the gradle complains that the pom.xml files can not be find. So the compiling would throw error.
NexusProvider.groovy file does not exist in master branch
I'm trying to configure CircleCI on java maven project using this orb.
This is a config file:
version: 2.1
orbs:
maven: circleci/[email protected]
nexus-platform-orb: sonatype/[email protected]
jobs:
install-nexus:
executor: nexus-platform-orb/nexus-platform-cli
steps:
- checkout
- nexus-platform-orb/install
workflows:
main:
jobs:
- install-nexus
- nexus-platform-orb/nexusjob:
context: MyContext
workspace: tmp/workspace/
requires:
- install-nexus
But I have an Error:
#!/bin/sh -eo pipefail
curl -L https://groovy.jfrog.io/artifactory/libs-release-local/org/codehaus/groovy/groovy-binary/2.5.3/groovy-binary-2.5.3.zip -o apache-groovy-binary.zip
mkdir -p ${CIRCLE_WORKING_DIRECTORY}/sonatype/bin || true
curl -L https://raw.githubusercontent.com/sonatype-nexus-community/docker-nexus-platform-cli/master/src/main/groovy/NexusPublisher.groovy -o ${CIRCLE_WORKING_DIRECTORY}/sonatype/bin/NexusPublisher.groovy
unzip apache-groovy-binary.zip
mv groovy-2.5.3 groovy
echo PATH=${PATH}:${CIRCLE_WORKING_DIRECTORY}/groovy/bin/ > setup.sh
/bin/sh: curl: not found
Exited with code exit status 127
Adding:
steps:
- checkout
- run: apk update && apk add curl curl-dev bash
- nexus-platform-orb/install
Producing one another error:
#!/bin/sh -eo pipefail
apk update && apk add curl curl-dev bash
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
Exited with code exit status 99
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.