This repo demonstrate the minimal example for Jenkins Shared Library.
Jenkins -> Manage Jenkins -> Configure System -> Search: Global Pipeline Libraries.
Fill in git parameters. Check "Load Implicitly" or declare @Library("${LibraryName}") at begin of your Jenkinsfile.
Put exportOptions.plist
and updateExportOptions.rb
to root directory in your repository. These files are rquired by archive step.
`
@Library('jenkins-shared-lib-example') _
pipeline {
agent any
stages {
stage("iOS Unity Build") {
steps {
iOSUnityBuild pwd(), params.build_type, "./builds"
}
}
...
}
}
`