<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://forge.etsi.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Get_started_with_Jenkins</id>
	<title>Get started with Jenkins - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://forge.etsi.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Get_started_with_Jenkins"/>
	<link rel="alternate" type="text/html" href="https://forge.etsi.org/wiki/index.php?title=Get_started_with_Jenkins&amp;action=history"/>
	<updated>2026-05-31T04:20:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://forge.etsi.org/wiki/index.php?title=Get_started_with_Jenkins&amp;diff=371&amp;oldid=prev</id>
		<title>Carignani at 08:08, 2 July 2020</title>
		<link rel="alternate" type="text/html" href="https://forge.etsi.org/wiki/index.php?title=Get_started_with_Jenkins&amp;diff=371&amp;oldid=prev"/>
		<updated>2020-07-02T08:08:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:08, 2 July 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Want to run the CI directly in Gitlab? ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The shared runner in Gitlab needs to be allowed by a Forge Admin. Contact &#039;&#039;&#039;cti_support&#039;&#039;&#039; at &#039;&#039;&#039;etsi&#039;&#039;&#039; dot &#039;&#039;&#039;org&#039;&#039;&#039; for more information. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Build scripts ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Build scripts ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carignani</name></author>
	</entry>
	<entry>
		<id>https://forge.etsi.org/wiki/index.php?title=Get_started_with_Jenkins&amp;diff=235&amp;oldid=prev</id>
		<title>Carignani: Created page with &quot;== Build scripts ==  The default build command for Jenkins on Forge is as follows:      #!/bin/bash          bash .jenkins.sh  This means that Jenkins will look for a file cal...&quot;</title>
		<link rel="alternate" type="text/html" href="https://forge.etsi.org/wiki/index.php?title=Get_started_with_Jenkins&amp;diff=235&amp;oldid=prev"/>
		<updated>2018-08-06T16:26:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Build scripts ==  The default build command for Jenkins on Forge is as follows:      #!/bin/bash          bash .jenkins.sh  This means that Jenkins will look for a file cal...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Build scripts ==&lt;br /&gt;
&lt;br /&gt;
The default build command for Jenkins on Forge is as follows:&lt;br /&gt;
&lt;br /&gt;
    #!/bin/bash&lt;br /&gt;
    &lt;br /&gt;
    bash .jenkins.sh&lt;br /&gt;
&lt;br /&gt;
This means that Jenkins will look for a file called &amp;lt;code&amp;gt;.jenkins.sh&amp;lt;/code&amp;gt; (note the dot at the beginning!) and will exectude the shell commands inside.&lt;br /&gt;
&lt;br /&gt;
=== Guidelines for writing your build script ===&lt;br /&gt;
&lt;br /&gt;
* Jenkins uses the &amp;#039;&amp;#039;&amp;#039;returned exit code&amp;#039;&amp;#039;&amp;#039; of the script to determine the outcome of the build:&lt;br /&gt;
** Exit status 0: successful build&lt;br /&gt;
** Exit status 1: build failed&lt;br /&gt;
&lt;br /&gt;
=== Basic build script example ===&lt;br /&gt;
&lt;br /&gt;
A very basic example for a script, assuming you need to run the &amp;lt;code&amp;gt;compile&amp;lt;/code&amp;gt; command on a text file and check that an HTML file has been created&lt;br /&gt;
&lt;br /&gt;
    #!/bin/bash&lt;br /&gt;
    &lt;br /&gt;
    compile myfile.txt&lt;br /&gt;
    if [ -f myfile.html ] ; then&lt;br /&gt;
        exit 0&lt;br /&gt;
    else&lt;br /&gt;
        exit 1&lt;/div&gt;</summary>
		<author><name>Carignani</name></author>
	</entry>
</feed>