Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-7576

Push build to bintray with build.json should support creating new repository

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: Bintray Integration
    • Labels:
      None

      Description

      Add optional repo block to the build.json enabling user to create new repository in the process of pushing the build.
      Artifactory new API
      {
      -“repo”: {
      -“updateExisited”: false, (default false)
      +"name": "my-repo",
      -“type”: “generic” (default generic),
      -"private": false, (default false)
      -"premium": false, (default false)
      -"desc": "This repo...",
      -"labels":["lable1", "label2"]
      }
      "package": {
      "name": "auto-upload",
      "repo": "test", // if exist and repo block doesn’t exist will attempt to push to existing repo
      "subject": "myBintrayUser",
      "desc": "I was pushed completely automatically",
      "website_url": "www.jfrog.com",
      "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues",
      "vcs_url": "https://github.com/bintray/bintray-client-java.git",
      "licenses": ["MIT"],
      "labels": ["cool", "awesome", "gorilla"],
      "public_download_numbers": false,
      "public_stats": false,
      "attributes": [

      {"name": "att1", "values" : ["val1"], "type": "string"}

      ,

      {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}

      ,

      {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}

      ]
      },
      "version": {
      "name": "0.5",
      "desc": "This is a version",
      "released": "2015-01-04",
      "vcs_tag": "0.5",
      "attributes": [

      {"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}

      ,

      {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}

      ,

      {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}

      ],
      "gpgSign": false
      },
      "applyToFiles": ["repo1/org/jfrog/*.*", "repo2/org/jfrog/test/module*/*.jar", "repo3/org/jfrog/test/**/*.*", "repo2/org/jfrog/test/**/art.?ar"],
      "applyToRepoFiles": ["/org/jfrog/*.*, jfrog/test/**/*.*"],
      "applyToProps": [

      {"upload.prop1": ["val1", "val2"]}

      ,

      {"upload.prop2": ["*"]}

      ,

      {"*": ["valueRegardlessOfProperty"]}

      ],
      "publish": true
      }

        Attachments

          Activity

            People

            • Assignee:
              danf Dan Feldman
              Reporter:
              royz Roy Zanbel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: