# lib_apt.sh - Docker build script apt library.
# For import only.
-# Copyright (c) 2021 Cisco and/or its affiliates.
+# Copyright (c) 2023 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
# libpcap-dev for python pypcap install (CSIT)
# sshpass for CSIT jobs
#
-# From .../csit/resources/tools/presentation/run_report_*.sh:
+# From .../csit/resources/tools/presentation/run_report_*.sh: // TO BE REMOVED IN RLS2306
# libxml2
# libxml2-dev
# libxslt-dev
# Install terraform for CSIT
#
-RUN wget https://releases.hashicorp.com/terraform/1.0.4/terraform_1.0.4_linux_$dpkg_arch.zip \\
- && unzip terraform_1.0.4_linux_$dpkg_arch.zip \\
+RUN wget https://releases.hashicorp.com/terraform/1.4.2/terraform_1.4.2_linux_$dpkg_arch.zip \\
+ && unzip terraform_1.4.2_linux_$dpkg_arch.zip \\
&& mv terraform /usr/bin \\
- && rm -f terraform_1.0.4_linux_$dpkg_arch.zip
+ && rm -f terraform_1.4.2_linux_$dpkg_arch.zip
+
+# Install Hugo and Go for CSIT
+RUN wget https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_linux-$dpkg_arch.deb \\
+ && dpkg -i hugo_extended_0.111.3_linux-$dpkg_arch.deb \\
+ && rm -f hugo_extended_0.111.3_linux-$dpkg_arch.deb \\
+ && wget https://go.dev/dl/go1.20.2.linux-$dpkg_arch.tar.gz \\
+ && rm -rf /usr/local/go \\
+ && tar -C /usr/local -xzf go1.20.2.linux-$dpkg_arch.tar.gz \\
+ && rm -f go1.20.2.linux-$dpkg_arch.tar.gz
# Install packages for all project branches
#
- project:
name: docs
jobs:
- - 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
- 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
+ - 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
+ - 'vpp-docsonly-verify-{stream}-{os}-{executor-arch}'
+ - 'vpp-docsonly-merge-{stream}-{os}-{executor-arch}'
project: 'vpp'
executor-arch: 'x86_64'
publishers:
- fdio-infra-publish-docs
- fdio-infra-publish
+
+- job-template:
+ name: 'vpp-docsonly-verify-{stream}-{os}-{executor-arch}'
+
+ project-type: freestyle
+ node: 'builder-{os}-prod-{executor-arch}'
+ concurrent: true
+ allow-empty: 'true'
+ fingerprint: false
+ only-if-success: true
+ default-excludes: false
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - os-parameter:
+ os: '{os}'
+ - stream-parameter:
+ stream: '{stream}'
+ - gerrit-refspec-parameter:
+ refspec: '{branch-refspec}'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: 'jenkins-gerrit-credentials'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+
+ wrappers:
+ - fdio-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - gerrit:
+ server-name: 'Primary'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'true'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck-docsonly'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'REG_EXP'
+ pattern: '.*docs/.*'
+ override-votes: true
+ gerrit-build-notbuilt-verified-value: 0
+ gerrit-build-successful-verified-value: 1
+ skip-vote:
+ successful: true
+ failed: false
+ unstable: false
+ notbuilt: false
+
+ builders:
+ - shell:
+ !include-raw-escape:
+ - ../scripts/setup_executor_env.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/commitmsg.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/setup_vpp_ubuntu_docker_test.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/docs.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/docs_spell.sh
+
+ publishers:
+ - fdio-infra-publish-docs-7day
+ - fdio-infra-publish
+
+- job-template:
+ name: 'vpp-docsonly-merge-{stream}-{os}-{executor-arch}'
+
+ project-type: freestyle
+ node: 'builder-{os}-prod-{executor-arch}'
+ concurrent: true
+ allow-empty: 'true'
+ fingerprint: false
+ only-if-success: true
+ default-excludes: false
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - os-parameter:
+ os: '{os}'
+ - stream-parameter:
+ stream: '{stream}'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: 'jenkins-gerrit-credentials'
+ refspec: ''
+ choosing-strategy: 'default'
+
+ wrappers:
+ - fdio-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - gerrit:
+ server-name: 'Primary'
+ trigger-on:
+ - change-merged-event
+ - comment-added-contains-event:
+ comment-contains-value: 'remerge-docsonly'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'REG_EXP'
+ pattern: '.*docs/.*'
+ skip-vote:
+ successful: true
+ failed: false
+ unstable: false
+ notbuilt: false
+
+ builders:
+ - shell:
+ !include-raw-escape:
+ - ../scripts/setup_executor_env.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/commitmsg.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/setup_vpp_ubuntu_docker_test.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/docs.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/docs_spell.sh
+
+ publishers:
+ - fdio-infra-publish-docs
+ - fdio-infra-publish
- draft-published-event
- comment-added-contains-event:
comment-contains-value: 'checkstylecheck'
- - comment-added-contains-event:
- comment-contains-value: 'docsonly'
- comment-added-contains-event:
comment-contains-value: 'recheck'
- comment-added-contains-event:
- shell:
!include-raw-escape:
- ../scripts/setup_executor_env.sh
+ - shell:
+ !include-raw-escape:
+ - ../scripts/vpp/commitmsg.sh
- shell:
!include-raw-escape:
- ../scripts/setup_vpp_ubuntu_docker_test.sh