Skip to content

Commit

Permalink
Support allow empty archive (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
c42-arthur authored Aug 10, 2023
1 parent 49ddce6 commit 3b7c705
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ fun DslContext<Step>.archiveArtifacts(artifacts: String, fingerprint: Boolean) =
fun DslContext<Step>.archiveArtifacts(artifacts: String, fingerprint: Boolean, allowEmptyArchive: Boolean) =
archiveArtifacts(artifacts.strDouble(), fingerprint, allowEmptyArchive)

fun DslContext<Step>.archiveArtifacts(artifacts: Var.Literal.Str, fingerprint: Boolean) {
add(ArchiveArtifacts(artifacts, fingerprint, false))
}
fun DslContext<Step>.archiveArtifacts(artifacts: Var.Literal.Str, fingerprint: Boolean, allowEmptyArchive: Boolean) {
add(ArchiveArtifacts(artifacts, fingerprint, allowEmptyArchive))
}

0 comments on commit 3b7c705

Please sign in to comment.