3 # Job template for running a script to build an artifact and
4 # upload it to nexus as RAW artifacts.
7 name: '{project-name}-{stream}-build-and-upload'
14 project-type: freestyle
16 node: ubuntu1804-docker-8c-8g
20 build-days-to-keep: '{build-days-to-keep}'
26 refspec: 'refs/heads/{branch}'
27 artifacts: '{archive-artifacts}'
31 credentials-id: '{jenkins-ssh-credential}'
34 choosing-strategy: 'default'
36 - 'refs/heads/{branch}'
40 recursive: '{submodule-recursive}'
45 build-timeout: '{build-timeout}'
49 - gerrit-trigger-release-manually:
50 server: '{server-name}'
55 - lf-provide-maven-settings:
56 global-settings-file: '{mvn-global-settings}'
57 settings-file: '{mvn-settings}'
58 - shell: '{obj:pre_script}'
59 - lf-infra-create-netrc:
63 ARTIFACT_NAME={artifact_name}
64 PROJECT_ID={project_id}
65 - shell: '{obj:post_script}'
66 - lf-provide-maven-settings-cleanup