Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#35] Support multiple version of a stream #55

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jmesnil
Copy link
Member

@jmesnil jmesnil commented Jun 1, 2022

* add a `stream.versions` field to be able to configure different
* versions for the same artifact.
  This field is an object. Its keys are regular expressions that matches
  the base version of the artifact. The values are regular expressions
that determins the latest version of the given base version

As an example:

```
streams:
- groupId: "io.undertow"
  artifactId: "undertow-core"
  versions:
    "\Q1.0.0.Final\E": "\Q1.0.0.Final\E"
    "\Q2.0.0.Final\E": "2\..*"
```

For the base version `1.0.0.Final`, it would also fetch the
`1.0.0.Final` version.

For the base version `2.0.0.Final`, it would fetch the latest version
that matches `2\..*` (eg `2.3.4.Final`)

This fixes #35

Signed-off-by: Jeff Mesnil <[email protected]>

@jmesnil jmesnil marked this pull request as draft June 1, 2022 13:55
* add a `stream.versions` field to be able to configure different
* versions for the same artifact.
  This field is an object. Its keys are regular expressions that matches
  the base version of the artifact. The values are regular expressions
that determins the latest version of the given base version

As an example:

```
streams:
- groupId: "io.undertow"
  artifactId: "undertow-core"
  versions:
    "\Q1.0.0.Final\E": "\Q1.0.0.Final\E"
    "\Q2.0.0.Final\E": "2\..*"
```

For the base version `1.0.0.Final`, it would also fetch the
`1.0.0.Final` version.

For the base version `2.0.0.Final`, it would fetch the latest version
that matches `2\..*` (eg `2.3.4.Final`)

This fixes wildfly-extras#35

Signed-off-by: Jeff Mesnil <[email protected]>
@jmesnil jmesnil force-pushed the 35_support_multiple_versions branch from 2d53862 to 780ae84 Compare June 2, 2022 14:19
@@ -76,6 +76,11 @@
"versionPattern" : {
"description": "VersionPattern of the stream. This is a regular expression that matches any version from this stream. Only one of version, versionPattern must be set.",
"type": "string"
},
"versionStreams" : {
"description": "Multiple versions of the stream. The key are regular expressions that matches the baseline version, the value are regular expresssion to determine the latest versio for that baseline",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo
s/versio /version /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants