Skip to content

Maven central sync should only push relevant artifacts #1149

@jvalkeal

Description

@jvalkeal

Now that we're signing files which are deployed into artifactory, workflow which deploy those into central should not take docs zip(and it's related files).

Looks like artifactory aql below does a trick:

{
  "files": [
    {
      "aql": {
        "items.find": {
          "$and": [
            {
              "@build.name": "${buildname}",
              "@build.number": "${buildnumber}"
            },
            {
              "path": { "$match": "org/springframework/statemachine/spring-statemachine-*" }
            }
          ]
        }
      },
      "target": "nexus/"
    }
  ]
}

This takes all from build name/number and rely on a fact that root level docs artifact don't start with spring-statemachine- in a path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions