diff --git a/.gitignore b/.gitignore index d874ad6..0a4bac8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.tar +build \ No newline at end of file diff --git a/commands.md b/commands.md new file mode 100644 index 0000000..fcf603c --- /dev/null +++ b/commands.md @@ -0,0 +1,30 @@ +# Installation et configuration Packer +## Installation : +```yay -S packer``` +## Téléchargement des plugins : +```packer init NERD_Debian_Exercise.pkr.hcl``` +## Build de l'image pour virtualbox : +```packer build -only=virtualbox-iso.primary NERD_Debian_Exercise.pkr.hcl``` +Un message de succès apparait à la fin du build : +Build 'virtualbox-iso.primary' finished after 14 minutes 25 seconds. +L'output du build est disponible dans le repertoire "build" comme définis dans la configuration : +output_directory = "${local.build_directory}/packer-${local.name}-virtualbox" +Il suffit alors d'import l'ovf dans virtualbox. + +La machine étant en NAT, pour pouvoir y accéder il faut faire du port fowarding. +Port 80 et 22 à utiliser. + +Pour pouvoir voir le job dans notre version de jenkins, il faut mettre à jour les plugins. + +# Réponses : +1. When is the last time the `test_app` job ran ? +Le dernier build date du : 1 avr. 2019, 14:12:12 + +2. When building the job again, can you describe and explain what is going differently than the previous run ? +Dans blue ocean pour avoir une meilleur visualisation, on voit que l'ancien build a eu un failure au niveau d'un test qui se nomme "TestSuite.WontWork". +Le nouveau build est en erreur au niveau de l'etape de build avec comme erreur : The source is not compiled in c++11 mode. +On peut voir qu'avec le cmake --version les version de cmake sont différentes entre les builds. + +3. Now that you have assessed the situation, make the necessary modifications to make sure the Job environment and/or Job executable behaves in the same manner as it was before. + +_Explain in a few lines the steps you took and provide a package (git repository / patch files) containing your modifications and a note explaining your changes._ \ No newline at end of file diff --git a/puppet/modules/nerd/templates/jenkins/Dockerfile.server.erb b/puppet/modules/nerd/templates/jenkins/Dockerfile.server.erb index 71c80e7..2a8a14e 100644 --- a/puppet/modules/nerd/templates/jenkins/Dockerfile.server.erb +++ b/puppet/modules/nerd/templates/jenkins/Dockerfile.server.erb @@ -3,4 +3,3 @@ USER jenkins ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false COPY --chown=jenkins:jenkins plugins.txt /usr/share/jenkins/ref/plugins.txt RUN jenkins-plugin-cli -f /usr/share/jenkins/ref/plugins.txt --latest false - diff --git a/puppet/modules/nerd/templates/jenkins/plugins.txt b/puppet/modules/nerd/templates/jenkins/plugins.txt index 31060cf..15d0ffe 100644 --- a/puppet/modules/nerd/templates/jenkins/plugins.txt +++ b/puppet/modules/nerd/templates/jenkins/plugins.txt @@ -1,7 +1,7 @@ -antisamy-markup-formatter:162.v0e6ec0fcfcf6 -apache-httpcomponents-client-4-api:4.5.14-208.v438351942757 +antisamy-markup-formatter:173.v680e3a_b_69ff3 +apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83 asm-api:9.7.1-97.v4cc844130d97 -authentication-tokens:1.119.v50285141b_7e1 +authentication-tokens:1.131.v7199556c3004 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.16 blueocean-commons:1.27.16 @@ -22,94 +22,94 @@ blueocean-rest-impl:1.27.16 blueocean-rest:1.27.16 blueocean-web:1.27.16 blueocean:1.27.16 -bootstrap5-api:5.3.3-1 +bootstrap5-api:5.3.3-2 bouncycastle-api:2.30.1.80-256.vf98926042a_9b_ -branch-api:2.1208.vf528356feca_4 -caffeine-api:3.1.8-133.v17b_1ff2e0599 -checks-api:2.2.1 -cloudbees-bitbucket-branch-source:934.4.0 -cloudbees-folder:6.980.v5a_cc0cb_25881 +branch-api:2.1214.v3f652804588d +caffeine-api:3.2.0-161.v691ef352cee1 +checks-api:367.v18b_7f530e54a_ +cloudbees-bitbucket-branch-source:935.1.0 +cloudbees-folder:6.982.vf165a_16c9507 command-launcher:118.v72741845c17a_ commons-compress-api:1.26.1-2 commons-lang3-api:3.17.0-84.vb_b_938040b_078 commons-text-api:1.13.0-153.v91dcd89e2a_22 -configuration-as-code:1929.v036b_5a_e1f123 +configuration-as-code:1932.v75cb_b_f1b_698d credentials-binding:687.v619cb_15e923f -credentials:1405.vb_cda_74a_f8974 +credentials:1408.va_622a_b_f5b_1b_1 display-url-api:2.209.v582ed814ff2f -durable-task:581.v299a_5609d767 -echarts-api:5.5.1-5 -eddsa-api:0.3.0-4.v84c6f0f4969e +durable-task:587.v84b_877235b_45 +echarts-api:5.6.0-2 +eddsa-api:0.3.0-13.v7cb_69ed68f00 favorite:2.225.v68765b_b_a_1fa_3 -font-awesome-api:6.6.0-2 -git-client:6.1.1 -git-parameter:0.10.0 +font-awesome-api:6.7.2-1 +git-client:6.1.2 +git-parameter:0.11.0 git:5.7.0 github-api:1.321-478.vc9ce627ce001 github-branch-source:1810.v913311241fa_9 -github:1.41.0 -gson-api:2.11.0-109.v1ef91dd0829a_ -handy-uri-templates-2-api:2.1.8-30.v7e777411b_148 -htmlpublisher:1.37 +github:1.42.0 +gson-api:2.12.1-113.v347686d6729f +handy-uri-templates-2-api:2.1.8-36.v85e4cb_234a_13 +htmlpublisher:424.va_e57f1253461 instance-identity:201.vd2a_b_5a_468a_a_6 -ionicons-api:74.v93d5eb_813d5f -jackson2-api:2.17.0-379.v02de8ec9f64c -jakarta-activation-api:2.1.3-1 -jakarta-mail-api:2.1.3-1 -javax-activation-api:1.2.0-7 -javax-mail-api:1.6.2-10 -jaxb:2.3.9-1 +ionicons-api:82.v0597178874e1 +jackson2-api:2.17.0-389.va_5c7e45cd806 +jakarta-activation-api:2.1.3-2 +jakarta-mail-api:2.1.3-2 +javax-activation-api:1.2.0-8 +javax-mail-api:1.6.2-11 +jaxb:2.3.9-133.vb_ec76a_73f706 jdk-tool:83.v417146707a_3d jenkins-design-language:1.27.16 -jjwt-api:0.11.5-112.ve82dfb_224b_a_d -joda-time-api:2.13.0-93.v9934da_29b_a_e9 +jjwt-api:0.11.5-120.v0268cf544b_89 +joda-time-api:2.13.1-115.va_6b_5f8efb_1d8 jquery:1.12.4-3 -jquery3-api:3.7.1-2 -jsch:0.2.16-86.v42e010d9484b_ +jquery3-api:3.7.1-3 +jsch:0.2.16-95.v3eecb_55fa_b_78 json-api:20250107-125.v28b_a_ffa_eb_f01 -json-path-api:2.9.0-138.vc943da_d833b_6 -junit:1312.v1a_235a_b_94a_31 +json-path-api:2.9.0-148.v22a_7ffe323ce +junit:1317.v5b_35d792b_06a_ mailer:489.vd4b_25144138f matrix-auth:3.2.4 matrix-project:845.vffd7fa_f27555 mina-sshd-api-common:2.14.0-143.v2b_362fc39576 mina-sshd-api-core:2.14.0-143.v2b_362fc39576 okhttp-api:4.11.0-183.va_87fc7a_89810 -pipeline-build-step:551.v178956c49ef8 -pipeline-graph-analysis:216.vfd8b_ece330ca_ -pipeline-groovy-lib:749.v70084559234a_ -pipeline-input-step:508.v584c0e9a_2177 -pipeline-milestone-step:119.vdfdc43fc3b_9a_ -pipeline-model-api:2.2221.vc657003fb_d93 -pipeline-model-definition:2.2221.vc657003fb_d93 -pipeline-model-extensions:2.2221.vc657003fb_d93 -pipeline-rest-api:2.34 -pipeline-stage-step:312.v8cd10304c27a_ -pipeline-stage-tags-metadata:2.2221.vc657003fb_d93 +pipeline-build-step:557.v95d96f77b_2b_8 +pipeline-graph-analysis:231.v56354571a_da_0 +pipeline-groovy-lib:752.vdddedf804e72 +pipeline-input-step:515.v8857b_eb_b_910c +pipeline-milestone-step:127.vb_52887ca_3b_6d +pipeline-model-api:2.2236.va_b_88ceec798f +pipeline-model-definition:2.2236.va_b_88ceec798f +pipeline-model-extensions:2.2236.va_b_88ceec798f +pipeline-rest-api:2.37 +pipeline-stage-step:322.vecffa_99f371c +pipeline-stage-tags-metadata:2.2236.va_b_88ceec798f pipeline-utility-steps:2.18.0 plain-credentials:183.va_de8f1dd5a_2b_ -plugin-util-api:5.1.0 -prism-api:1.29.0-18 +plugin-util-api:6.0.0 +prism-api:1.29.0-19 pubsub-light:1.18 -scm-api:703.v72ff4b_259600 -script-security:1369.v9b_98a_4e95b_2d +scm-api:704.v3ce5c542825a_ +script-security:1373.vb_b_4a_a_c26fa_00 snakeyaml-api:2.3-123.v13484c65210a_ sse-gateway:1.27 -ssh-credentials:349.vb_8b_6b_9709f5b_ -sshd:3.330.vc866a_8389b_58 -structs:338.v848422169819 +ssh-credentials:355.v9b_e5b_cde5003 +sshd:3.353.v2b_d33c46e970 +structs:343.vdcf37b_a_c81d5 theme-manager:278.v2e3c063e42cc -token-macro:400.v35420b_922dcb_ -trilead-api:2.147.vb_73cc728a_32e +token-macro:444.v52de7e9c573d +trilead-api:2.192.vc50a_d147e369 variant:70.va_d9f17f859e0 versioncolumn:320.v6b_b_814ca_01f7 workflow-aggregator:600.vb_57cdd26fdd7 workflow-api:1363.v03f731255494 workflow-basic-steps:1079.vce64b_a_929c5a_ -workflow-cps:4014.vcd7dc51d8b_30 +workflow-cps:4032.vf3248d9c3fee workflow-durable-task-step:1405.v1fcd4a_d00096 -workflow-job:1498.v33a_0c6f3a_4b_4 -workflow-multibranch:800.v5f0a_a_660950e -workflow-scm-step:427.v4ca_6512e7df1 -workflow-step-api:686.v603d058a_e148 -workflow-support:944.v5a_859593b_98a_ \ No newline at end of file +workflow-job:1505.vea_4b_20a_4a_495 +workflow-multibranch:803.v08103b_87c280 +workflow-scm-step:437.v05a_f66b_e5ef8 +workflow-step-api:700.v6e45cb_a_5a_a_21 +workflow-support:961.v51869f7b_d409 \ No newline at end of file