gitops/env/stage2/templates/jenkins.yaml [737:815]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            trim(true)
                          }

                          choiceParam {
                            name('AAOS_CLEAN')
                            description('''<p>Clean build or cache directories, e.g.
                              <ul>
                                <li>NO_CLEAN : do not clean</li>
                                <li>CLEAN_BUILD : this will clean the build target output directory</li>
                                <li>CLEAN_ALL : this will clear the whole cache including source</li>
                              </ul>
                              <b>Warning:</b> Only use when necessary.</p>''')
                            choices(['NO_CLEAN', 'CLEAN_BUILD', 'CLEAN_ALL'])
                          }

                          stringParam {
                            name('GERRIT_REPO_SYNC_JOBS')
                            defaultValue('{{ .Values.config.workloads.android.repoSyncJobs }}')
                            description('''<p>Number of parallel sync jobs for <i>repo sync</i>.<br/>
                              Default set to <code>REPO_SYNC_JOBS</code> environment variable value.<br/>
                              If undefined (or null), defaults to 1.</p>''')
                            trim(true)
                          }

                          choiceParam {
                            name('INSTANCE_RETENTION_TIME')
                            description('''<p>Time in minutes to retain the instance after build completion.<br/>
                              Useful for debugging build issues, reviewing target outputs etc.</p>''')
                            choices(['0', '15', '30', '45', '60', '120', '180'])
                          }

                          stringParam {
                            name('AAOS_ARTIFACT_STORAGE_SOLUTION')
                            defaultValue('GCS_BUCKET')
                            description('''<p>Android Artifact Storage:<br/>
                              <ul><li>GCS_BUCKET will store to cloud bucket storage</li>
                              <li>Empty will result in nothing stored</li></ul></p>''')
                            trim(true)
                          }

                          stringParam {
                            name('GERRIT_PROJECT')
                            defaultValue('')
                            description('''<p>Optional, define Gerrit Project with open review.</p>''')
                            trim(true)
                          }

                          stringParam {
                            name('GERRIT_CHANGE_NUMBER')
                            defaultValue('')
                            description('''<p>Optional, define Gerrit review item change number.</p>''')
                            trim(true)
                          }

                          stringParam {
                            name('GERRIT_PATCHSET_NUMBER')
                            defaultValue('')
                            description('''<p>Optional, define Gerrit review item patchset number.</p>''')
                            trim(true)
                          }
                        }

                        logRotator {
                          daysToKeep({{ .Values.config.workloads.android.logRotation.daysToKeep }})
                          numToKeep({{ .Values.config.workloads.android.logRotation.numToKeep }})
                        }

                        definition {
                          cpsScm {
                            lightweight()
                            scm {
                              git {
                                remote {
                                  url('{{ .Values.config.workloads.android.url }}')
                                  credentials('jenkins-github-creds')
                                }
                                branch('*/{{ .Values.config.workloads.android.branch }}')
                              }
                            }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



gitops/env/stage2/templates/jenkins.yaml [858:936]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            trim(true)
                          }

                          choiceParam {
                            name('AAOS_CLEAN')
                            description('''<p>Clean build or cache directories, e.g.
                              <ul>
                                <li>NO_CLEAN : do not clean</li>
                                <li>CLEAN_BUILD : this will clean the build target output directory</li>
                                <li>CLEAN_ALL : this will clear the whole cache including source</li>
                              </ul>
                              <b>Warning:</b> Only use when necessary.</p>''')
                            choices(['NO_CLEAN', 'CLEAN_BUILD', 'CLEAN_ALL'])
                          }

                          stringParam {
                            name('GERRIT_REPO_SYNC_JOBS')
                            defaultValue('{{ .Values.config.workloads.android.repoSyncJobs }}')
                            description('''<p>Number of parallel sync jobs for <i>repo sync</i>.<br/>
                              Default set to <code>REPO_SYNC_JOBS</code> environment variable value.<br/>
                              If undefined (or null), defaults to 1.</p>''')
                            trim(true)
                          }

                          choiceParam {
                            name('INSTANCE_RETENTION_TIME')
                            description('''<p>Time in minutes to retain the instance after build completion.<br/>
                              Useful for debugging build issues, reviewing target outputs etc.</p>''')
                            choices(['0', '15', '30', '45', '60', '120', '180'])
                          }

                          stringParam {
                            name('AAOS_ARTIFACT_STORAGE_SOLUTION')
                            defaultValue('GCS_BUCKET')
                            description('''<p>Android Artifact Storage:<br/>
                              <ul><li>GCS_BUCKET will store to cloud bucket storage</li>
                              <li>Empty will result in nothing stored</li></ul></p>''')
                            trim(true)
                          }

                          stringParam {
                            name('GERRIT_PROJECT')
                            defaultValue('')
                            description('''<p>Optional, define Gerrit Project with open review.</p>''')
                            trim(true)
                          }

                          stringParam {
                            name('GERRIT_CHANGE_NUMBER')
                            defaultValue('')
                            description('''<p>Optional, define Gerrit review item change number.</p>''')
                            trim(true)
                          }

                          stringParam {
                            name('GERRIT_PATCHSET_NUMBER')
                            defaultValue('')
                            description('''<p>Optional, define Gerrit review item patchset number.</p>''')
                            trim(true)
                          }
                        }

                        logRotator {
                          daysToKeep({{ .Values.config.workloads.android.logRotation.daysToKeep }})
                          numToKeep({{ .Values.config.workloads.android.logRotation.numToKeep }})
                        }

                        definition {
                          cpsScm {
                            lightweight()
                            scm {
                              git {
                                remote {
                                  url('{{ .Values.config.workloads.android.url }}')
                                  credentials('jenkins-github-creds')
                                }
                                branch('*/{{ .Values.config.workloads.android.branch }}')
                              }
                            }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



