Compare commits

..

4 Commits

Author SHA1 Message Date
Denes Matetelki f26b3f5a30 try block instead of a post
jenkinsfiles_play/master There was a failure building this commit Details
jenkinsfiles_play/scripted_branch There was a failure building this commit Details
giteee/jenkinsfile_play/master There was a failure building this commit Details
6 years ago
Denes Matetelki d89cb33df3 scripted post action
jenkinsfiles_play/master There was a failure building this commit Details
6 years ago
Denes Matetelki d4d75c3ca8 try2
jenkinsfiles_play/master This commit looks good Details
6 years ago
Denes Matetelki 50e2d5d7e7 simplify even more
jenkinsfiles_play/master There was a failure building this commit Details
6 years ago

63
Jenkinsfile vendored

@ -1,42 +1,45 @@
pipeline { #!/usr/bin/env groovy
agent any
parameters { properties([
booleanParam(defaultValue: true, description: 'blabla?', name: 'userFlag') parameters([
} booleanParam(defaultValue: false, description: 'dog', name: 'cat'),
string(defaultValue: 'lisa', description: 'uninteresting', name: 'name', trim: false)
])
])
stages {
stage("foo") {
steps {
echo "flag: ${params.userFlag}"
}
post {
always { node('master') {
echo 'One way or another, I have finished' stage('Print params') {
} echo "flag: ${params.cat}"
success { echo "flag: ${params.name}"
echo 'I succeeeded!'
}
unstable {
echo 'I am unstable :/'
}
failure {
echo 'I failed :('
}
changed {
echo 'Things were different before...'
}
} }
try {
stage('Test') {
sh 'echo "Fail!"; exit 1'
} }
echo 'This will run only if successful'
} catch (e) {
echo 'This will run only if failed'
stage('archiving test results') { // Since we're catching the exception in order to report on it,
steps { // we need to re-throw it, to ensure that the build is marked as failed
sh "touch testresults.xml" throw e
junit 'testresults.xml' } finally {
def currentResult = currentBuild.result ?: 'SUCCESS'
if (currentResult == 'UNSTABLE') {
echo 'This will run only if the run was marked as unstable'
} }
def previousResult = currentBuild.previousBuild?.result
if (previousResult != null && previousResult != currentResult) {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
} }
echo 'This will always run'
} }
} }

@ -1,340 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites
name="Vargrant-QA"
tests="32"
failures="1"
>
<testsuite
name="log/vcp6-tests"
tests="32"
failures="1"
skipped="10"
>
<testcase
name="00-noop.sh"
classname="log/vcp6-tests.00-noop"
>
</testcase>
<testcase
name="01-setup-repo-prod.sh"
classname="log/vcp6-tests.01-setup-repo-prod"
>
</testcase>
<testcase
name="01-setup-repo-stage.sh"
classname="log/vcp6-tests.01-setup-repo-stage"
>
</testcase>
<testcase
name="02-install-vcp-debian.sh"
classname="log/vcp6-tests.02-install-vcp-debian"
>
<skipped/>
</testcase>
<testcase
name="02-install-vcp-redhat.sh"
classname="log/vcp6-tests.02-install-vcp-redhat"
>
</testcase>
<testcase
name="03-install-vmods-debian.sh"
classname="log/vcp6-tests.03-install-vmods-debian"
>
<skipped/>
</testcase>
<testcase
name="03-install-vmods-redhat.sh"
classname="log/vcp6-tests.03-install-vmods-redhat"
>
</testcase>
<testcase
name="04-install-vcs-debian.sh"
classname="log/vcp6-tests.04-install-vcs-debian"
>
<skipped/>
</testcase>
<testcase
name="04-install-vcs-redhat.sh"
classname="log/vcp6-tests.04-install-vcs-redhat"
>
</testcase>
<testcase
name="05-install-varnish-agent-debian.sh"
classname="log/vcp6-tests.05-install-varnish-agent-debian"
>
<skipped/>
</testcase>
<testcase
name="05-install-varnish-agent-redhat.sh"
classname="log/vcp6-tests.05-install-varnish-agent-redhat"
>
</testcase>
<testcase
name="07-install-vac-debian.sh"
classname="log/vcp6-tests.07-install-vac-debian"
>
<skipped/>
</testcase>
<testcase
name="07-install-vac-redhat.sh"
classname="log/vcp6-tests.07-install-vac-redhat"
>
</testcase>
<testcase
name="10-systemctl-vcp.sh"
classname="log/vcp6-tests.10-systemctl-vcp"
>
</testcase>
<testcase
name="11-systemctl-vcs.sh"
classname="log/vcp6-tests.11-systemctl-vcs"
>
</testcase>
<testcase
name="12-systemctl-varnish-agent.sh"
classname="log/vcp6-tests.12-systemctl-varnish-agent"
>
</testcase>
<testcase
name="14-systemtcl-vac.sh"
classname="log/vcp6-tests.14-systemtcl-vac"
>
</testcase>
<testcase
name="14-sysv-vac.sh"
classname="log/vcp6-tests.14-sysv-vac"
>
<skipped/>
</testcase>
<testcase
name="15-systemctl-varnish-vagent-vac.sh"
classname="log/vcp6-tests.15-systemctl-varnish-vagent-vac"
>
</testcase>
<testcase
name="15-sysv-varnish-agent-vac.sh"
classname="log/vcp6-tests.15-sysv-varnish-agent-vac"
>
<skipped/>
</testcase>
<testcase
name="23-varnishtest-all-versions.sh"
classname="log/vcp6-tests.23-varnishtest-all-versions"
>
</testcase>
<testcase
name="24-install-vha-debian.sh"
classname="log/vcp6-tests.24-install-vha-debian"
>
<skipped/>
</testcase>
<testcase
name="24-install-vha-redhat.sh"
classname="log/vcp6-tests.24-install-vha-redhat"
>
</testcase>
<testcase
name="25-varnishtest-vcp-specific.sh"
classname="log/vcp6-tests.25-varnishtest-vcp-specific"
>
<failure
type="failed"
message="failed" >
**** top 0.0 extmacro def pwd=/vagrant
**** top 0.0 extmacro def localhost=127.0.0.1
**** top 0.0 extmacro def bad_backend=127.0.0.1 37788
**** top 0.0 extmacro def bad_ip=192.0.2.255
**** top 0.0 macro def testdir=//vagrant/vcp6-tests/vtc
**** top 0.0 macro def tmpdir=/tmp/vtc.6532.3504b912
* top 0.0 TEST /vagrant/vcp6-tests/vtc/01-all-vmods.vtc starting
** top 0.0 === varnishtest Verify that Varnish starts with all VMODs impor...
* top 0.0 TEST Verify that Varnish starts with all VMODs imported
** top 0.0 === server s1 {
** s1 0.0 Starting server
**** s1 0.0 macro def s1_addr=127.0.0.1
**** s1 0.0 macro def s1_port=34054
**** s1 0.0 macro def s1_sock=127.0.0.1 34054
* s1 0.0 Listen on 127.0.0.1 34054
** top 0.0 === varnish v1 -vcl+backend {
** s1 0.0 Started on 127.0.0.1 34054
** v1 0.0 Launch
*** v1 0.0 CMD: cd ${pwd} ANDAND exec varnishd -d -n /tmp/vtc.6532.3504b912/v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p sigsegv_handler=on -p thread_pool_min=10 -p debug=+vtc_mode -a '127.0.0.1:0' -M '127.0.0.1 38784' -P /tmp/vtc.6532.3504b912/v1/varnishd.pid
*** v1 0.0 CMD: cd /vagrant ANDAND exec varnishd -d -n /tmp/vtc.6532.3504b912/v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p sigsegv_handler=on -p thread_pool_min=10 -p debug=+vtc_mode -a '127.0.0.1:0' -M '127.0.0.1 38784' -P /tmp/vtc.6532.3504b912/v1/varnishd.pid
*** v1 0.0 PID: 6538
**** v1 0.0 macro def v1_pid=6538
**** v1 0.0 macro def v1_name=/tmp/vtc.6532.3504b912/v1
*** v1 0.0 debug|Debug: Version: varnish-plus-6.0.1r5 revision 87748e9eb3054a0395e8d0df6e06306b5782a089
*** v1 0.0 debug|Debug: Platform: Linux,3.10.0-514.21.2.el7.x86_64,x86_64,-junix,-sdefault,-sdefault,-hcritbit
*** v1 0.0 debug|200 334
*** v1 0.0 debug|-----------------------------
*** v1 0.0 debug|Varnish Cache CLI 1.0
*** v1 0.0 debug|-----------------------------
*** v1 0.0 debug|Linux,3.10.0-514.21.2.el7.x86_64,x86_64,-junix,-sdefault,-sdefault,-hcritbit
*** v1 0.0 debug|varnish-plus-6.0.1r5 revision 87748e9eb3054a0395e8d0df6e06306b5782a089
*** v1 0.0 debug|
*** v1 0.0 debug|Type 'help' for command list.
*** v1 0.0 debug|Type 'quit' to close CLI session.
*** v1 0.0 debug|Type 'start' to launch worker process.
*** v1 0.0 debug|
**** v1 0.1 CLIPOLL 1 0x1 0x0
*** v1 0.1 CLI connection fd = 7
*** v1 0.1 CLI RX 107
**** v1 0.1 CLI RX|bnovptubrxhabpgsqboluuzzelscrgjs
**** v1 0.1 CLI RX|
**** v1 0.1 CLI RX|Authentication required.
**** v1 0.1 CLI TX|auth 3c3dc4fcfb384df9638a43f059b513923aedf8a17891de6f3be4f40e5eda69b4
*** v1 0.1 CLI RX 200
**** v1 0.1 CLI RX|-----------------------------
**** v1 0.1 CLI RX|Varnish Cache CLI 1.0
**** v1 0.1 CLI RX|-----------------------------
**** v1 0.1 CLI RX|Linux,3.10.0-514.21.2.el7.x86_64,x86_64,-junix,-sdefault,-sdefault,-hcritbit
**** v1 0.1 CLI RX|varnish-plus-6.0.1r5 revision 87748e9eb3054a0395e8d0df6e06306b5782a089
**** v1 0.1 CLI RX|
**** v1 0.1 CLI RX|Type 'help' for command list.
**** v1 0.1 CLI RX|Type 'quit' to close CLI session.
**** v1 0.1 CLI RX|Type 'start' to launch worker process.
**** v1 0.1 CLI TX|vcl.inline vcl1 LESSLESS %XJEIFLH|)Xspa8P
**** v1 0.1 CLI TX|vcl 4.1;
**** v1 0.1 CLI TX|backend s1 { .host = 127.0.0.1; .port = 34054; }
**** v1 0.1 CLI TX|
**** v1 0.1 CLI TX|
**** v1 0.1 CLI TX|\t# This list needs to be updated whenever new VMODs are added
**** v1 0.1 CLI TX|\t#import acl;
**** v1 0.1 CLI TX|\timport aclplus;
**** v1 0.1 CLI TX|\timport akamai;
**** v1 0.1 CLI TX|\timport deviceatlas;
**** v1 0.1 CLI TX|\timport bodyaccess;
**** v1 0.1 CLI TX|\timport cookieplus;
**** v1 0.1 CLI TX|\timport cookie;
**** v1 0.1 CLI TX|\timport curl;
**** v1 0.1 CLI TX|\timport digest;
**** v1 0.1 CLI TX|\timport directors;
**** v1 0.1 CLI TX|\timport edgestash;
**** v1 0.1 CLI TX|\timport geoip;
**** v1 0.1 CLI TX|\timport goto;
**** v1 0.1 CLI TX|\timport header;
**** v1 0.1 CLI TX|\timport http;
**** v1 0.1 CLI TX|\timport json;
**** v1 0.1 CLI TX|\timport kvstore;
**** v1 0.1 CLI TX|\timport leastconn;
**** v1 0.1 CLI TX|\timport memcached;
**** v1 0.1 CLI TX|\t#import named;
**** v1 0.1 CLI TX|\timport paywall;
**** v1 0.1 CLI TX|\timport rewrite;
**** v1 0.1 CLI TX|\timport rtstatus;
**** v1 0.1 CLI TX|\timport saintmode;
**** v1 0.1 CLI TX|\timport session;
**** v1 0.1 CLI TX|\t#import softpurge;
**** v1 0.1 CLI TX|\t#import sqlite3;
**** v1 0.1 CLI TX|\timport std;
**** v1 0.1 CLI TX|\timport tcp;
**** v1 0.1 CLI TX|\timport var;
**** v1 0.1 CLI TX|\timport vha;
**** v1 0.1 CLI TX|\timport vsthrottle;
**** v1 0.1 CLI TX|\timport xkey;
**** v1 0.1 CLI TX|
**** v1 0.1 CLI TX|%XJEIFLH|)Xspa8P
*** v1 0.1 CLI RX 106
**** v1 0.1 CLI RX|Message from VCC-compiler:
**** v1 0.1 CLI RX|Incompatible VMOD akamai
**** v1 0.1 CLI RX|\tFile name: /usr/lib64/varnish-plus/vmods/libvmod_akamai.so
**** v1 0.1 CLI RX|\tABI mismatch, expected LESSVarnish Plus 6.0.1r5 87748e9eb3054a0395e8d0df6e06306b5782a089MORE, got LESSVarnish Plus 6.0.1r1 3baba64a96b9b339ba1839ee4bcaa9ee9bfbacacMORE
**** v1 0.1 CLI RX|('LESSvcl.inlineMORE' Line 8 Pos 16)
**** v1 0.1 CLI RX| import akamai;
**** v1 0.1 CLI RX|---------------######-
**** v1 0.1 CLI RX|
**** v1 0.1 CLI RX|Running VCC-compiler failed, exited with 2
**** v1 0.1 CLI RX|VCL compilation failed
---- v1 0.1 FAIL VCL does not compile
* top 0.1 RESETTING after /vagrant/vcp6-tests/vtc/01-all-vmods.vtc
** s1 0.1 Waiting for server (4/-1)
** v1 0.1 Wait
**** v1 0.1 CLI TX|panic.clear
*** v1 0.2 CLI RX 300
**** v1 0.2 CLI RX|No panic to clear
*** v1 0.2 debug|Info: manager stopping child
*** v1 0.2 debug|Info: manager dies
**** v1 0.2 STDOUT poll 0x11
*** v1 0.2 vsl|No VSL chunk found (child not started ?)
** v1 0.2 WAIT4 pid=6538 status=0x0000 (user 0.016202 sys 0.027575)
* top 0.2 TEST /vagrant/vcp6-tests/vtc/01-all-vmods.vtc FAILED
# top TEST /vagrant/vcp6-tests/vtc/01-all-vmods.vtc FAILED (0.225) exit=2
</failure>
</testcase>
<testcase
name="26-systemctl-vha.sh"
classname="log/vcp6-tests.26-systemctl-vha"
>
</testcase>
<testcase
name="27-install-vdisco-debian.sh"
classname="log/vcp6-tests.27-install-vdisco-debian"
>
<skipped/>
</testcase>
<testcase
name="27-install-vdisco-redhat.sh"
classname="log/vcp6-tests.27-install-vdisco-redhat"
>
</testcase>
<testcase
name="28-systemctl-vdisco.sh"
classname="log/vcp6-tests.28-systemctl-vdisco"
>
</testcase>
<testcase
name="29-systemctl-varnishncsa.sh"
classname="log/vcp6-tests.29-systemctl-varnishncsa"
>
</testcase>
<testcase
name="30-install-broadcaster-debian.sh"
classname="log/vcp6-tests.30-install-broadcaster-debian"
>
<skipped/>
</testcase>
<testcase
name="30-install-broadcaster-redhat.sh"
classname="log/vcp6-tests.30-install-broadcaster-redhat"
>
</testcase>
<testcase
name="31-systemctl-broadcaster.sh"
classname="log/vcp6-tests.31-systemctl-broadcaster"
>
</testcase>
</testsuite>
</testsuites>

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites disabled="" errors="" failures="" name="" tests="" time="">
<testsuite disabled="" errors="" failures="" hostname="" id="" name="" package="" skipped="" tests="" time="" timestamp="">
<properties>
<property name="" value=""/>
</properties>
<testcase assertions="" classname="" name="" status="" time="">
<skipped/>
<error message="" type=""/>
<failure message="" type=""/>
<system-out/>
<system-err/>
</testcase>
<system-out/>
<system-err/>
</testsuite>
</testsuites>
Loading…
Cancel
Save