artifacts怎么传入值
时间: 2024-01-27 14:02:52 浏览: 31
在 Jenkins Pipeline 中,artifacts 参数可以传入一个字符串或者一个列表,用于指定要打包的文件或者目录。如果传入一个字符串,则可以使用通配符来匹配多个文件,例如:
```groovy
archiveArtifacts allowEmptyArchive: true, artifacts: "dist/*.jar"
```
这个命令将会把 dist 目录下所有的 .jar 文件打包成一个归档文件并存档。如果要打包多个文件或者目录,则可以使用列表的形式,例如:
```groovy
archiveArtifacts allowEmptyArchive: true, artifacts: ["dist/*.jar", "build/*.zip"]
```
这个命令将会把 dist 目录下所有的 .jar 文件和 build 目录下所有的 .zip 文件打包成一个归档文件并存档。
相关问题
gradle artifacts
Gradle artifacts are the output files generated by a Gradle build. These can include compiled Java or Kotlin classes, JAR or ZIP files, Android APKs, and other artifacts that are produced by a project build. Artifacts can be published to a repository, such as Maven or Ivy, where they can be consumed by other projects or developers. In Gradle, artifacts are defined in the build script using the `artifacts` block, which specifies the output files and their properties, such as their file format, location, and dependencies.
gridding artifacts
Gridding artifacts are visual distortions that can occur in digital images when they are resized or stretched beyond their original dimensions. These artifacts are caused by the algorithm used to resample the image, which creates new pixels to fill in the gaps between the original pixels. The resulting grid of new pixels can create a pattern of lines or blocks that distort the image and reduce its quality. Gridding artifacts can also occur in printing or reproduction processes, where the dots or pixels used to create the image become visible and create a grid-like pattern. To minimize gridding artifacts, it is important to use high-quality image files and to avoid resizing or stretching images beyond their original dimensions whenever possible.