Skip to content

Commit 225428e

Browse files
committed
Deploying to gh-pages from @ b79cfff 🚀
1 parent 06db437 commit 225428e

9 files changed

Lines changed: 26 additions & 61 deletions

File tree

examples/jenkins/parallel-robot-pipeline/firefox.Dockerfile renamed to examples/jenkins/parallel-robot-pipeline/Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
FROM ubuntu:20.04 as base
2-
3-
ENV BROWSER='headlessfirefox'
4-
ENV BROWSER_OPTIONS=''
1+
FROM mcr.microsoft.com/playwright:v1.48.0-noble AS base
52

63
# Disable interactive configuration
74
ENV DEBIAN_FRONTEND='noninteractive'
@@ -10,16 +7,15 @@ WORKDIR /work
107
COPY ./entrypoint.sh ./requirements.txt /work/
118
RUN apt-get update && \
129
apt-get install -y \
13-
python3 \
14-
python3-pip \
15-
firefox \
16-
firefox-geckodriver && \
17-
pip install -r requirements.txt && \
10+
python3-pip && \
11+
pip install --break-system-packages -r requirements.txt && \
12+
rfbrowser init && \
1813
chmod +x entrypoint.sh
1914

2015
ENTRYPOINT ["./entrypoint.sh"]
2116

2217

2318
FROM base
2419

25-
COPY . .
20+
COPY suites/ suites/
21+
COPY --from=base /work/entrypoint.sh .

examples/jenkins/parallel-robot-pipeline/chromium.Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
robot "$@" ./suites
2+
robot "$@" ./suites

examples/jenkins/parallel-robot-pipeline/index.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -677,18 +677,14 @@ <h2 id="configure-the-pipeline">Configure the pipeline</h2>
677677
</span></code></pre></div>
678678
<h2 id="running-the-example-scripts-locally">Running the example scripts locally</h2>
679679
<p>Build the Docker containers with <code>docker build</code>:</p>
680-
<div class="language-sh highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="c1"># Chromium</span>
681-
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a>docker<span class="w"> </span>build<span class="w"> </span>.<span class="w"> </span>-f<span class="w"> </span>chromium.Dockerfile<span class="w"> </span>--tag<span class="w"> </span>rf-screenshot-gc
682-
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a>
683-
</span><span id="__span-1-4"><a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="c1"># Firefox</span>
684-
</span><span id="__span-1-5"><a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a>docker<span class="w"> </span>build<span class="w"> </span>.<span class="w"> </span>-f<span class="w"> </span>firefox.Dockerfile<span class="w"> </span>--tag<span class="w"> </span>rf-screenshot-ff
680+
<div class="language-sh highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>docker<span class="w"> </span>build<span class="w"> </span>.<span class="w"> </span>--tag<span class="w"> </span>rf-screenshot
685681
</span></code></pre></div>
686682
<p>Execute the Robot Framework suites with <code>docker run</code>:</p>
687683
<div class="language-sh highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="c1"># Chromium</span>
688-
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a>docker<span class="w"> </span>run<span class="w"> </span>--rm<span class="w"> </span>-v<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>/out:/out<span class="w"> </span>rf-screenshot-gc<span class="w"> </span>-d<span class="w"> </span>/out<span class="w"> </span>-v<span class="w"> </span>URL:https://github.com/kangasta/jenkins-examples
684+
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a>docker<span class="w"> </span>run<span class="w"> </span>--rm<span class="w"> </span>-v<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>/out:/out<span class="w"> </span>-e<span class="w"> </span><span class="nv">BROWSER</span><span class="o">=</span>chromium<span class="w"> </span>rf-screenshot<span class="w"> </span>-d<span class="w"> </span>/out<span class="w"> </span>-v<span class="w"> </span>URL:https://kangasta.github.io/cicd-examples/
689685
</span><span id="__span-2-3"><a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a>
690686
</span><span id="__span-2-4"><a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a><span class="c1"># Firefox</span>
691-
</span><span id="__span-2-5"><a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a>docker<span class="w"> </span>run<span class="w"> </span>--rm<span class="w"> </span>-v<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>/out:/out<span class="w"> </span>rf-screenshot-ff<span class="w"> </span>-d<span class="w"> </span>/out<span class="w"> </span>-v<span class="w"> </span>URL:https://github.com/kangasta/jenkins-examples
687+
</span><span id="__span-2-5"><a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a>docker<span class="w"> </span>run<span class="w"> </span>--rm<span class="w"> </span>-v<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>/out:/out<span class="w"> </span>-e<span class="w"> </span><span class="nv">BROWSER</span><span class="o">=</span>firefox<span class="w"> </span>rf-screenshot<span class="w"> </span>-d<span class="w"> </span>/out<span class="w"> </span>-v<span class="w"> </span>URL:https://kangasta.github.io/cicd-examples/
692688
</span></code></pre></div>
693689

694690

@@ -712,7 +708,7 @@ <h2 id="running-the-example-scripts-locally">Running the example scripts locally
712708
<span class="md-icon" title="Last update">
713709
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
714710
</span>
715-
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 11, 2024</span>
711+
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 12, 2024</span>
716712
</span>
717713

718714

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
robotframework>=4
2-
robotframework-seleniumlibrary>=4
2+
robotframework-browser>=18

examples/jenkins/parallel-robot-pipeline/suites/screenshot.robot

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
*** Settings ***
22
Library OperatingSystem
3-
Library SeleniumLibrary
3+
Library Browser
44
Suite Setup Check URL and open browser
55
Suite Teardown Close browser
66

77
*** Variables ***
8-
${BROWSER} headlesschrome
9-
${BROWSER_OPTIONS} ${EMPTY}
8+
${BROWSER} chromium
109
${URL} ${EMPTY}
11-
${WAIT_PAGE_LOAD} 5 seconds
1210

1311
*** Tasks ***
1412
Capture Screenshot
1513
Skip if not $URL msg=Target URL not specified
16-
Go to ${URL}
17-
Sleep ${WAIT_PAGE_LOAD}
18-
Capture Page Screenshot
14+
New Page ${URL}
15+
Take Screenshot EMBED
1916

2017
*** Keywords ***
2118
Open browser defined by environment
22-
${browser_options}= Get Environment Variable BROWSER_OPTIONS ${BROWSER_OPTIONS}
2319
${browser}= Get Environment Variable BROWSER ${BROWSER}
24-
Open browser browser=${browser} options=${browser_options}
25-
Set Screenshot Directory ${OUTPUT DIR}${/}${browser}_screenshots
20+
New Browser ${browser}
21+
New Context viewport={'width': 1280, 'height': 720}
2622

2723
Check URL and open browser
2824
Skip if not $URL msg=Target URL not specified

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sitemap.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://kangasta.github.io/cicd-examples/</loc>
5-
<lastmod>2024-10-11</lastmod>
5+
<lastmod>2024-10-12</lastmod>
66
</url>
77
<url>
88
<loc>https://kangasta.github.io/cicd-examples/examples/docker/docker-on-wsl/</loc>
9-
<lastmod>2024-10-11</lastmod>
9+
<lastmod>2024-10-12</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://kangasta.github.io/cicd-examples/examples/jenkins/ansible-kubernetes/</loc>
13-
<lastmod>2024-10-11</lastmod>
13+
<lastmod>2024-10-12</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://kangasta.github.io/cicd-examples/examples/jenkins/build-status-pipelines/</loc>
17-
<lastmod>2024-10-11</lastmod>
17+
<lastmod>2024-10-12</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://kangasta.github.io/cicd-examples/examples/jenkins/dind-jenkins/</loc>
21-
<lastmod>2024-10-11</lastmod>
21+
<lastmod>2024-10-12</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://kangasta.github.io/cicd-examples/examples/jenkins/parallel-robot-pipeline/</loc>
25-
<lastmod>2024-10-11</lastmod>
25+
<lastmod>2024-10-12</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://kangasta.github.io/cicd-examples/examples/jenkins/sonarqube-jenkins/</loc>
29-
<lastmod>2024-10-11</lastmod>
29+
<lastmod>2024-10-12</lastmod>
3030
</url>
3131
</urlset>

sitemap.xml.gz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)