Skip to content

Commit

Permalink
MINOR: [Java][CI] Fix grep for new nightlies versioning (#14166)
Browse files Browse the repository at this point in the history
I've noticed that the latest Java nightlies where not uploaded https://nightlies.apache.org/arrow/java/org/apache/arrow/arrow-c-data/. I missed to update the grep on this PR: #14135

I have now tested locally the bash script to validate the repo structure will now be generated correctly:
```
repo
└── org
    └── apache
        └── arrow
            ├── arrow-algorithm
            │   ├── 10.0.0-SNAPSHOT
            │   │   ├── arrow-algorithm-10.0.0-SNAPSHOT.jar
            │   │   ├── arrow-algorithm-10.0.0-SNAPSHOT-javadoc.jar
            │   │   ├── arrow-algorithm-10.0.0-SNAPSHOT.pom
            │   │   ├── arrow-algorithm-10.0.0-SNAPSHOT-sources.jar
            │   │   └── arrow-algorithm-10.0.0-SNAPSHOT-tests.jar
            │   └── 2022-09-18
            │       ├── arrow-algorithm-10.0.0-SNAPSHOT.jar
            │       ├── arrow-algorithm-10.0.0-SNAPSHOT-javadoc.jar
            │       ├── arrow-algorithm-10.0.0-SNAPSHOT.pom
            │       ├── arrow-algorithm-10.0.0-SNAPSHOT-sources.jar
            │       └── arrow-algorithm-10.0.0-SNAPSHOT-tests.jar
            ├── arrow-avro
            │   ├── 10.0.0-SNAPSHOT
            │   │   ├── arrow-avro-10.0.0-SNAPSHOT.jar
            │   │   ├── arrow-avro-10.0.0-SNAPSHOT-javadoc.jar
            │   │   ├── arrow-avro-10.0.0-SNAPSHOT.pom
            │   │   ├── arrow-avro-10.0.0-SNAPSHOT-sources.jar
            │   │   └── arrow-avro-10.0.0-SNAPSHOT-tests.jar
            │   └── 2022-09-18
            │       ├── arrow-avro-10.0.0-SNAPSHOT.jar
            │       ├── arrow-avro-10.0.0-SNAPSHOT-javadoc.jar
            │       ├── arrow-avro-10.0.0-SNAPSHOT.pom
            │       ├── arrow-avro-10.0.0-SNAPSHOT-sources.jar
            │       └── arrow-avro-10.0.0-SNAPSHOT-tests.jar
...
```

Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
raulcd authored Sep 19, 2022
1 parent 59b5728 commit 081b70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/java_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
fi
PATTERN_TO_GET_LIB_AND_VERSION='([a-z].+)-([0-9]+.[0-9]+.[0-9]+-SNAPSHOT)'
mkdir -p repo/org/apache/arrow/
for LIBRARY in $(ls binaries/$PREFIX/java-jars | grep -E '.jar|.pom' | grep dev); do
for LIBRARY in $(ls binaries/$PREFIX/java-jars | grep -E '.jar|.pom' | grep SNAPSHOT); do
[[ $LIBRARY =~ $PATTERN_TO_GET_LIB_AND_VERSION ]]
mkdir -p repo/org/apache/arrow/${BASH_REMATCH[1]}/${BASH_REMATCH[2]}
mkdir -p repo/org/apache/arrow/${BASH_REMATCH[1]}/${DATE}
Expand Down

0 comments on commit 081b70b

Please sign in to comment.