When using Generic-Artifactory Integration with Legacy patterns placeholders as ${BUILD_ID} get replaced with the environemnt variables. This is not the case when using specs in pipelines.
This pull requests fixes this: https://github.com/JFrogDev/jenkins-artifactory-plugin/pull/37