Skip to content

Commit

Permalink
Use default build discarded settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuchita Khare committed Nov 1, 2024
1 parent 07c316b commit 7668a9d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

@Library('[email protected]') _

getApproval()
def archiveLib(String repoName) {
sh "git -C ${repoName} clean -xdf"
sh "zip ${repoName}_sw.zip -r ${repoName}"
Expand All @@ -18,20 +17,16 @@ def checkout_shallow()
extensions: [[$class: 'CloneOption', depth: 1, shallow: true, noTags: false]]
]
}

getApproval()
pipeline {
agent none

options {
disableConcurrentBuilds()
buildDiscarder(xmosDiscardBuildSettings())
skipDefaultCheckout()
timestamps()
// on develop discard builds after a certain number else keep forever
buildDiscarder(logRotator(
numToKeepStr: env.BRANCH_NAME ==~ /develop/ ? '25' : '',
artifactNumToKeepStr: env.BRANCH_NAME ==~ /develop/ ? '25' : ''
))
}

parameters {
string(
name: 'TOOLS_VERSION',
Expand Down

0 comments on commit 7668a9d

Please sign in to comment.