Giter VIP home page Giter VIP logo

circleci-nexus-orb's People

Contributors

bhamail avatar collinpeters avatar fernau avatar jbauerrfid avatar kyletryon avatar scherzhaft avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

circleci-nexus-orb's Issues

Missing argument for option: u

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 apache-groovy-binary-2.5.3.zip

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.

Why no pom file upload the nexus

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.

curl: not found while using nexus-platform-orb/install

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.