Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
1602aa4
Update Jenkinsfile
valentinab25 Nov 28, 2017
833ea23
TEST WHEN
valentinab25 Nov 28, 2017
eeb1cf3
Update Jenkinsfile
valentinab25 Nov 28, 2017
1aebd69
Update Jenkinsfile
valentinab25 Nov 28, 2017
ee879d6
Update Jenkinsfile
valentinab25 Nov 28, 2017
6f1ffe7
Update Jenkinsfile
valentinab25 Nov 28, 2017
571a561
Update Jenkinsfile
valentinab25 Nov 28, 2017
41634ed
Update Jenkinsfile
valentinab25 Nov 28, 2017
b3b289d
Update Jenkinsfile
valentinab25 Nov 28, 2017
23c9a61
Update Jenkinsfile
valentinab25 Nov 28, 2017
9fcc7c9
Update Jenkinsfile
valentinab25 Nov 28, 2017
daea8da
Update Jenkinsfile
valentinab25 Nov 28, 2017
2eb62c5
Update Jenkinsfile
valentinab25 Nov 28, 2017
0d7b360
Update Jenkinsfile
valentinab25 Nov 28, 2017
bcfb62b
Update Jenkinsfile
valentinab25 Nov 28, 2017
bc19f52
Update Jenkinsfile
valentinab25 Nov 28, 2017
833cb56
Update Jenkinsfile
valentinab25 Nov 28, 2017
e732953
Update Jenkinsfile
valentinab25 Nov 28, 2017
c1d84a6
Update Jenkinsfile
valentinab25 Nov 28, 2017
fe20ce8
Update Jenkinsfile
valentinab25 Nov 28, 2017
a631b6d
Update Jenkinsfile
valentinab25 Nov 28, 2017
bd88772
Update Jenkinsfile
valentinab25 Nov 28, 2017
800a039
Update Jenkinsfile
valentinab25 Nov 28, 2017
376c219
Update Jenkinsfile
valentinab25 Nov 28, 2017
67fcac2
Update Jenkinsfile
valentinab25 Nov 28, 2017
a6b303e
Update Jenkinsfile
valentinab25 Nov 28, 2017
d7224b7
Update Jenkinsfile
valentinab25 Nov 28, 2017
4c16e85
Update Jenkinsfile
valentinab25 Nov 28, 2017
3a0de89
Update Jenkinsfile
valentinab25 Nov 28, 2017
68fcee0
Update HISTORY.txt
valentinab25 Nov 28, 2017
40dc0c3
Update version.txt
valentinab25 Nov 28, 2017
e8504e5
Update Jenkinsfile
valentinab25 Nov 28, 2017
4e7167e
Update Jenkinsfile
valentinab25 Nov 28, 2017
7fc52a6
Update Jenkinsfile
valentinab25 Nov 28, 2017
98a0976
Update Jenkinsfile
valentinab25 Nov 28, 2017
5b25558
Update Jenkinsfile
valentinab25 Nov 28, 2017
703b47a
Update Jenkinsfile
valentinab25 Nov 28, 2017
29e5433
Update Jenkinsfile
valentinab25 Nov 28, 2017
eeca05d
Update Jenkinsfile
valentinab25 Nov 28, 2017
d4361e6
Update version.txt
valentinab25 Nov 28, 2017
f3a85d9
Update Jenkinsfile
valentinab25 Nov 28, 2017
4f6bd81
Update Jenkinsfile
valentinab25 Nov 29, 2017
af944bd
Update Jenkinsfile
valentinab25 Nov 29, 2017
3280714
Update Jenkinsfile
valentinab25 Nov 29, 2017
096c403
Update Jenkinsfile
valentinab25 Nov 29, 2017
89d3939
Update Jenkinsfile
valentinab25 Nov 29, 2017
fb6b35e
Update Jenkinsfile
valentinab25 Nov 29, 2017
4d5a10f
Update Jenkinsfile
valentinab25 Nov 29, 2017
3d7f6dc
Update Jenkinsfile
valentinab25 Nov 29, 2017
a1d9005
Update version.txt
valentinab25 Nov 29, 2017
7f91ec9
Update Jenkinsfile
valentinab25 Nov 29, 2017
91757d1
Update Jenkinsfile
valentinab25 Nov 29, 2017
8b3d79f
Update Jenkinsfile
valentinab25 Nov 29, 2017
3cff9b5
Update Jenkinsfile
valentinab25 Nov 29, 2017
981f4d9
Update Jenkinsfile
valentinab25 Nov 29, 2017
d1617cb
Update Jenkinsfile
valentinab25 Nov 29, 2017
02356b4
Update Jenkinsfile
valentinab25 Nov 29, 2017
1a03d9b
Update Jenkinsfile
valentinab25 Nov 29, 2017
096b598
Update Jenkinsfile
valentinab25 Nov 29, 2017
42fe99f
Update Jenkinsfile
valentinab25 Nov 29, 2017
2bc655a
Update version.txt
valentinab25 Nov 29, 2017
6f2eaa7
Update version.txt
valentinab25 Nov 29, 2017
a1f155e
Update version.txt
valentinab25 Nov 29, 2017
e3bc533
Update version.txt
valentinab25 Nov 29, 2017
88c5ed9
Update version.txt
valentinab25 Nov 29, 2017
f1ecc1e
Update Jenkinsfile
valentinab25 Nov 29, 2017
3638a9b
Update Jenkinsfile
valentinab25 Nov 29, 2017
6bfab1d
Update Jenkinsfile
valentinab25 Nov 29, 2017
94cc030
Update Jenkinsfile
valentinab25 Nov 29, 2017
224c00f
Update Jenkinsfile
valentinab25 Nov 29, 2017
9014473
Update Jenkinsfile
valentinab25 Nov 29, 2017
85d1869
Update Jenkinsfile
valentinab25 Nov 29, 2017
081faac
Update Jenkinsfile
valentinab25 Nov 29, 2017
27daed3
Update Jenkinsfile
valentinab25 Nov 29, 2017
22ff4bd
Update Jenkinsfile
valentinab25 Nov 29, 2017
dcd7613
Update Jenkinsfile
valentinab25 Nov 29, 2017
90542c2
Update version.txt
valentinab25 Nov 29, 2017
92df956
Update Jenkinsfile
valentinab25 Nov 29, 2017
769374c
Update version.txt
valentinab25 Nov 29, 2017
22b599d
Update Jenkinsfile
valentinab25 Nov 29, 2017
9d2b1a5
Update Jenkinsfile
valentinab25 Nov 29, 2017
2498726
Update Jenkinsfile
valentinab25 Nov 29, 2017
b158b20
Update Jenkinsfile
valentinab25 Nov 29, 2017
64a60ff
Update Jenkinsfile
valentinab25 Nov 29, 2017
a7ac9bf
Update Jenkinsfile
valentinab25 Nov 29, 2017
ebea02f
Update Jenkinsfile
valentinab25 Nov 29, 2017
c2e4ad3
Update Jenkinsfile
valentinab25 Nov 29, 2017
6e7dcbe
Update Jenkinsfile
valentinab25 Nov 29, 2017
ef4c7b4
Update Jenkinsfile
valentinab25 Nov 29, 2017
369b487
Update Jenkinsfile
valentinab25 Nov 29, 2017
6a22aab
Update Jenkinsfile
valentinab25 Nov 29, 2017
c53c443
Update Jenkinsfile
valentinab25 Nov 29, 2017
c16de05
Update Jenkinsfile
valentinab25 Nov 29, 2017
7b65180
Update Jenkinsfile
valentinab25 Nov 29, 2017
628343d
Update Jenkinsfile
valentinab25 Nov 29, 2017
98546d8
Update Jenkinsfile
valentinab25 Dec 12, 2017
c65a351
Update Jenkinsfile
valentinab25 Dec 13, 2017
1949653
Update Jenkinsfile
valentinab25 Dec 13, 2017
3f048fa
Update Jenkinsfile
valentinab25 Dec 13, 2017
1c951b8
Update Jenkinsfile
valentinab25 Dec 13, 2017
bb55057
Update Jenkinsfile
valentinab25 Dec 13, 2017
4a8c966
Update Jenkinsfile
valentinab25 Dec 13, 2017
485e15e
Update Jenkinsfile
valentinab25 Dec 13, 2017
2ff7010
Update Jenkinsfile
valentinab25 Dec 13, 2017
900b2c7
Update Jenkinsfile
valentinab25 Dec 13, 2017
cb6beaf
Update Jenkinsfile
valentinab25 Dec 13, 2017
305348c
Update Jenkinsfile
valentinab25 Dec 13, 2017
0c2ac8b
Update Jenkinsfile
valentinab25 Dec 13, 2017
5b40e2b
Update Jenkinsfile
valentinab25 Dec 13, 2017
7c314cb
Update Jenkinsfile
valentinab25 Dec 13, 2017
d1d5d00
Update Jenkinsfile
valentinab25 Dec 13, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 65 additions & 60 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,81 +1,86 @@
#!groovy

pipeline {
agent any

environment {
GIT_NAME = "eea.progressbar"
GIT_ORG = "valentinab25"
GIT_VERSIONFILE = "eea/progressbar/version.txt"
GIT_HISTORYFILE = "docs/HISTORY.txt"
}

stages {

stage('Functional tests') {
steps {
parallel(

"WWW": {
node(label: 'docker-1.13') {
script {
try {
checkout scm
sh '''docker run -p 8080 -d --name=$BUILD_TAG-ft-www -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" eeacms/www-devel'''
sh '''docker port $BUILD_TAG-ft-www 8080/tcp > url.file;docker_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.Gateway}}{{end}}' $BUILD_TAG-ft-www); sed -i -e "s/0.0.0.0/${docker_ip}/g" url.file'''
sh '''new_url=$(cat url.file);timeout 600 wget --retry-connrefused --tries=60 --waitretry=10 -q http://${new_url}/'''
sh '''new_url=$(cat url.file);casperjs test eea/progressbar/ftests/eea/*.js --url=${new_url} --xunit=ftestsreport.xml'''
}
finally {
sh '''docker stop $BUILD_TAG-ft-www'''
sh '''docker rm -v $BUILD_TAG-ft-www'''


stage('Pull request checks') {
when {
not {
environment name: 'CHANGE_ID', value: ''
}
}
junit 'ftestsreport.xml'
archiveArtifacts 'screenshot_eea.png'

}
},

"KGS": {

environment name: 'CHANGE_TARGET', value: 'master'
}
steps {

parallel(
"Check PR": {
node(label: 'docker-1.13') {
script {
try {
checkout scm
sh '''docker run -p 8080 -d --name=$BUILD_TAG-ft-kgs -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" eeacms/kgs-devel'''
sh '''docker port $BUILD_TAG-ft-kgs 8080/tcp > url.file;docker_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.Gateway}}{{end}}' $BUILD_TAG-ft-kgs); sed -i -e "s/0.0.0.0/${docker_ip}/g" url.file'''
sh '''new_url=$(cat url.file);timeout 600 wget --retry-connrefused --tries=60 --waitretry=10 -q http://${new_url}/'''
sh '''new_url=$(cat url.file);casperjs test eea/progressbar/ftests/kgs/*.js --url=${new_url} --xunit=ftestsreport.xml'''
}
finally {
sh '''docker stop $BUILD_TAG-ft-kgs'''
sh '''docker rm -v $BUILD_TAG-ft-kgs'''
}
}
junit 'ftestsreport.xml'
archiveArtifacts 'screenshot_kgs.png'



script {

if ( env.CHANGE_BRANCH != "develop" && !( env.CHANGE_BRANCH.startsWith("hotfix")) ) {
error "Pipeline aborted due to PR not made from develop or hotfix branch"
}

try {
sh '''docker run -i --name="$BUILD_TAG-gitflow-pr" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e GIT_SRC="$GIT_URL" -e GIT_VERSIONFILE="$GIT_VERSIONFILE" -e GIT_HISTORYFILE="$GIT_HISTORYFILE" -e GIT_NAME="$GIT_NAME" gitflow'''
} finally {
sh '''docker rm -v $BUILD_TAG-gitflow-pr'''
}
}


}
},

"Plone4": {
node(label: 'docker-1.13') {
script {
try {
checkout scm
sh '''docker run -p 8080 -d --name=$BUILD_TAG-ft-plone4 -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" eeacms/plone-test:4'''
sh '''docker port $BUILD_TAG-ft-plone4 8080/tcp > url.file;docker_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.Gateway}}{{end}}' $BUILD_TAG-ft-plone4); sed -i -e "s/0.0.0.0/${docker_ip}/g" url.file'''
sh '''new_url=$(cat url.file);timeout 600 wget --retry-connrefused --tries=60 --waitretry=10 -q http://${new_url}/'''
sh '''new_url=$(cat url.file);casperjs test eea/progressbar/ftests/plone4/*.js --url=${new_url} --xunit=ftestsreport.xml'''
}
finally {
sh '''docker stop $BUILD_TAG-ft-plone4'''
sh '''docker rm -v $BUILD_TAG-ft-plone4'''
"Tag": {
node(label: 'docker-1.13') {
}
}
)
}
}
stage('Master branch release and tag') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
branch 'master'
}
}
junit 'ftestsreport.xml'
archiveArtifacts 'screenshot_plone4.png'

}

}
steps {
parallel(
"Release": {
node(label: 'docker-1.13') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'eea.plonebuildout.core']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/eea/eea.plonebuildout.core.git']]])



}
},

"Tag": {
node(label: 'docker-1.13') {
}
}
)
}
}

}

}
1 change: 1 addition & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changelog
=========


4.1.dev0 - (unreleased)
-----------------------
* Change: Remove Sphinx generated documentation
Expand Down
2 changes: 1 addition & 1 deletion eea/progressbar/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.dev0
4.1