pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
857 stars 483 forks source link

how to regex search azure artifact storage from jenkins #829

Open HeidiRechek opened 1 year ago

HeidiRechek commented 1 year ago
ISSUE TYPE
Jenkinsapi VERSION
Jenkins VERSION

2.361.4

SUMMARY

we would like to find the artifact based on job/commit and return artifact name if not link. Our artifacts are all in azure blob storage not jenkins artifacts.

Requesting ability reference artifacts stored in Azure storage blob and query using short commit hash (first 7 digits) as search key

EXPECTED RESULTS

query using a var that took the commit hash and grabbed the first 7 digits as regex search key to return artifact name/link

ACTUAL RESULTS

Using the search_artifact_by_regexp.py I got no artifact found.

USEFUL INFORMATION