donal
2018-04-08 84dbdcf85cbe905b902fb94cf7afee327dec778f
Adding publish to nexus
1 files added
1 files modified
9 ■■■■ changed files
nexus.json 5 ●●●●● patch | view | raw | blame | history
package.json 4 ●●● patch | view | raw | blame | history
nexus.json
New file
@@ -0,0 +1,5 @@
{
  "name": "zip",
  "type": "groovy",
  "content": "repository.createRawHosted('zip')"
}
package.json
@@ -11,7 +11,9 @@
    "clean": "rm -rf reports dist package-contents*",
    "build:ci": "npm run build && mkdir -p package-contents && cp -vr dist Dockerfile package-contents",
    "package": "zip -r package-contents.zip package-contents",
    "publish": ""
    "prepare-nexus": "curl -X POST  -u admin:admin123 -H 'Content-Type: application/json' -H 'Accept: application/json' -d @nexus.json http://${NEXUS_ENDPOINT}/service/siesta/rest/v1/script && curl -X POST  -u admin:admin123 -H 'Content-Type: text/plain' -H 'Accept: application/json' http://${NEXUS_ENDPOINT}/service/siesta/rest/v1/script/zip/run",
    "publish": "curl -vvv -u admin:admin123 --upload-file package-contents.zip http://${NEXUS_ENDPOINT}/repository/zip/com/redhat/todolist/${JOB_NAME}.${BUILD_NUMBER}/package-contents.zip",
    "publish:get": "curl -vvv http://admin:admin123@${NEXUS_ENDPOINT}/repository/zip/com/redhat/todolist/${JOB_NAME}.${BUILD_NUMBER}/package-contents.zip -o package-contents.zip"
  },
  "dependencies": {
    "axios": "^0.18.0",