Skip to content

Instantly share code, notes, and snippets.

@barnumbirr
Created April 30, 2019 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barnumbirr/44ad85d7b7edb38b85afc8e45c23ef04 to your computer and use it in GitHub Desktop.
Save barnumbirr/44ad85d7b7edb38b85afc8e45c23ef04 to your computer and use it in GitHub Desktop.
Allow glob pattern in serverless.com artifact name

In serverless.yml

package:
  artifact: target/packagename-${env:MVN_VERSION}.jar

and in your Jenkins build configuration

MVN_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
export MVN_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment