Skip to content

Commit

Permalink
Merge pull request #8 from eea/develop
Browse files Browse the repository at this point in the history
Migrate to the new sentry SDK
  • Loading branch information
valipod authored Sep 24, 2021
2 parents 36b1185 + 772a39e commit 496f23a
Show file tree
Hide file tree
Showing 20 changed files with 286 additions and 223 deletions.
22 changes: 9 additions & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ pipeline {

"JS Lint": {
node(label: 'docker') {
sh '''docker run -i --rm --name="$BUILD_TAG-jslint" -e GIT_SRC="https://github.com/eea/$GIT_NAME.git" -e GIT_NAME="$GIT_NAME" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/jslint4java'''
script {
try {
sh '''docker run -i --rm --name="$BUILD_TAG-jslint" -e GIT_SRC="https://github.com/eea/$GIT_NAME.git" -e GIT_NAME="$GIT_NAME" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/jslint4java'''
} catch (err) {
echo "Unstable: ${err}"
}
}
}
},

Expand Down Expand Up @@ -132,25 +138,15 @@ pipeline {

"Plone5": {
node(label: 'docker') {
sh '''docker run -i --rm --name="$BUILD_TAG-plone5" -e GIT_BRANCH="$BRANCH_NAME" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/plone-test:5 -v -vv -s $GIT_NAME'''
sh '''docker pull eeacms/plone-test:5; docker run -i --rm --name="$BUILD_TAG-plone5" -e GIT_BRANCH="$BRANCH_NAME" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/plone-test:5 -v -vv -s $GIT_NAME'''
}
},

"Python3": {
node(label: 'docker') {
sh '''docker run -i --rm --name="$BUILD_TAG-python3" -e GIT_BRANCH="$BRANCH_NAME" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/plone-test:5-python3 -v -vv -s $GIT_NAME'''
}
},

"Zope2": {
node(label: 'eea') {
script {
checkout scm
sh '''cd buildouts/zope2 && ./install.sh && ./bin/instance-uptest'''
}
}
}

)
}
}
Expand Down Expand Up @@ -250,7 +246,7 @@ pipeline {
withSonarQubeEnv('Sonarqube') {
sh '''sed -i "s|/plone/instance/src/$GIT_NAME|$(pwd)|g" coverage.xml'''
sh '''find xunit-functional -type f -exec mv {} xunit-reports/ ";"'''
sh "export PATH=$PATH:${scannerHome}/bin:${nodeJS}/bin; sonar-scanner -Dsonar.python.xunit.skipDetails=true -Dsonar.python.xunit.reportPath=xunit-reports/*.xml -Dsonar.python.coverage.reportPath=coverage.xml -Dsonar.sources=./eea -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
sh "export PATH=$PATH:${scannerHome}/bin:${nodeJS}/bin; sonar-scanner -Dsonar.python.xunit.skipDetails=true -Dsonar.python.xunit.reportPath=xunit-reports/*.xml -Dsonar.python.coverage.reportPaths=coverage.xml -Dsonar.sources=./eea -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Install

<!-- Sentry start -->
<div tal:replace="structure context/@@sentry" />
<script type="text/javascript" src="/++resource++raven.min.js"></script>
<script type="text/javascript" src="/++resource++sentry.min.js"></script>
<script type="text/javascript" src="/++resource++sentry.js"></script>
<!-- Sentry end -->

Expand Down
17 changes: 0 additions & 17 deletions buildouts/zope2/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions buildouts/zope2/buildout.cfg

This file was deleted.

110 changes: 0 additions & 110 deletions buildouts/zope2/install.sh

This file was deleted.

7 changes: 0 additions & 7 deletions buildouts/zope2/versions.cfg

This file was deleted.

5 changes: 5 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

1.5 - (2021-09-24)
---------------------------
* Change: Migrate to the new sentry SDK
[valipod]

1.4 - (2019-12-02)
---------------------------
* Bug fix: Fix JS integration
Expand Down
Loading

0 comments on commit 496f23a

Please sign in to comment.