Skip to content

Commit

Permalink
Move theme to volto-industry-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Oct 28, 2021
1 parent 2f597a3 commit 996ed9a
Show file tree
Hide file tree
Showing 330 changed files with 4,779 additions and 43,558 deletions.
65 changes: 3 additions & 62 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,75 +1,16 @@
# Logs
.vscode/
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

node_modules
build
.env.local
.env.development.local
.env.test.local
.env.production.local

data
*.old
*~
src/addons
src/develop
npm-cache
omelette
709 changes: 0 additions & 709 deletions CHANGELOG.md

This file was deleted.

74 changes: 37 additions & 37 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
pipeline {
agent any

environment {
GIT_NAME="eprtr_frontend"
NAMESPACE = "@eeacms"
registry = "eeacms/eprtr-frontend"
template = "templates/volto-eprtr"
RANCHER_STACKID = "1st1851"
RANCHER_ENVID = "1a332957"
RANCHER_STACKID = ""
RANCHER_ENVID = ""
GIT_NAME = "industry-frontend"
registry = "eeacms/industry-frontend"
template = "templates/industry-frontend"
dockerImage = ''
tagName = ''
SONARQUBE_TAG = ""
SONARQUBE_TAG = 'https://industry.eea.europa.eu/'
}


agent any

stages {

stage('Integration tests') {
stage('Integration tests') {
parallel {
stage('Cypress') {
stage('Integration with Cypress') {
when {
environment name: 'CHANGE_ID', value: ''
environment name: 'CHANGE_ID', value: ''
}
steps {
node(label: 'docker') {
Expand Down Expand Up @@ -50,7 +47,7 @@ pipeline {
}
}
}

stage("Docker test build") {
when {
not {
Expand All @@ -77,12 +74,12 @@ pipeline {
}
}
}


}
}


stage('Pull Request') {
when {
not {
Expand All @@ -105,7 +102,7 @@ pipeline {
}
}


stage('Release') {
when {
allOf {
Expand Down Expand Up @@ -142,26 +139,26 @@ pipeline {
dockerImage.push()
}
} finally {
sh script: "docker rmi $registry:$tagName", returnStatus: true
sh "docker rmi $registry:$tagName"
}
}
}
}
}

stage('Release catalog ( on tag )') {
when {
buildingTag()
}
steps{
node(label: 'docker') {
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'), usernamePassword(credentialsId: 'jekinsdockerhub', usernameVariable: 'DOCKERHUB_USER', passwordVariable: 'DOCKERHUB_PASS')]) {
sh '''docker pull eeacms/gitflow; docker run -i --rm --name="$BUILD_TAG-release" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e DOCKERHUB_REPO="$registry" -e GIT_TOKEN="$GITHUB_TOKEN" -e DOCKERHUB_USER="$DOCKERHUB_USER" -e DOCKERHUB_PASS="$DOCKERHUB_PASS" -e RANCHER_CATALOG_PATHS="$template" -e GITFLOW_BEHAVIOR="RUN_ON_TAG" eeacms/gitflow'''
}
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN')]) {
sh '''docker pull eeacms/gitflow; docker run -i --rm --name="${BUILD_TAG}-release" -e GIT_TOKEN="${GITHUB_TOKEN}" -e RANCHER_CATALOG_PATH="${template}" -e DOCKER_IMAGEVERSION="${BRANCH_NAME}" -e DOCKER_IMAGENAME="${registry}" --entrypoint /add_rancher_catalog_entry.sh eeacms/gitflow'''
}
}
}
}

stage('Upgrade demo ( on tag )') {
when {
buildingTag()
Expand Down Expand Up @@ -198,23 +195,26 @@ pipeline {
}



post {
always {
cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true)
}
changed {
script {
def details = """<h1>${env.JOB_NAME} - Build #${env.BUILD_NUMBER} - ${currentBuild.currentResult}</h1>
<p>Check console output at <a href="${env.BUILD_URL}/display/redirect">${env.JOB_BASE_NAME} - #${env.BUILD_NUMBER}</a></p>
def url = "${env.BUILD_URL}/display/redirect"
def status = currentBuild.currentResult
def subject = "${status}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"
def summary = "${subject} (${url})"
def details = """<h1>${env.JOB_NAME} - Build #${env.BUILD_NUMBER} - ${status}</h1>
<p>Check console output at <a href="${url}">${env.JOB_BASE_NAME} - #${env.BUILD_NUMBER}</a></p>
"""
emailext(
subject: '$DEFAULT_SUBJECT',
body: details,
attachLog: true,
compressLog: true,
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']]
)

def color = '#FFFF00'
if (status == 'SUCCESS') {
color = '#00FF00'
} else if (status == 'FAILURE') {
color = '#FF0000'
}
emailext (subject: '$DEFAULT_SUBJECT', to: '$DEFAULT_RECIPIENTS', body: details)
}
}
}
}
}
134 changes: 0 additions & 134 deletions Makefile

This file was deleted.

Loading

0 comments on commit 996ed9a

Please sign in to comment.