-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from ARGOeu/devel
Version 1.0.3
- Loading branch information
Showing
52 changed files
with
23,174 additions
and
705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
pipeline { | ||
agent { | ||
docker { | ||
image 'node:buster' | ||
} | ||
} | ||
options { | ||
checkoutToSubdirectory('eosc-recommender-metrics') | ||
newContainerPerStage() | ||
} | ||
environment { | ||
PROJECT_DIR='eosc-recommender-metrics' | ||
GH_USER = 'newgrnetci' | ||
GH_EMAIL = '<argo@grnet.gr>' | ||
} | ||
stages { | ||
|
||
stage ('Deploy Docs') { | ||
when { | ||
anyOf { | ||
branch 'master' | ||
branch 'devel' | ||
} | ||
} | ||
steps { | ||
echo 'Publish eosc-recommender-metrics docs...' | ||
sh ''' | ||
cd $WORKSPACE/$PROJECT_DIR | ||
cd website | ||
npm install | ||
''' | ||
sshagent (credentials: ['jenkins-master']) { | ||
sh ''' | ||
cd $WORKSPACE/$PROJECT_DIR/website | ||
mkdir ~/.ssh && ssh-keyscan -H github.com > ~/.ssh/known_hosts | ||
git config --global user.email ${GH_EMAIL} | ||
git config --global user.name ${GH_USER} | ||
GIT_USER=${GH_USER} USE_SSH=true npm run deploy | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
post{ | ||
always { | ||
cleanWs() | ||
} | ||
success { | ||
script{ | ||
if ( env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'devel' ) { | ||
slackSend( message: ":rocket: New version of eosc-recommender-metrics docs deployed! Job: $JOB_NAME !\n <https://argoeu.github.io/eosc-recommender-metrics|See them here...>") | ||
} | ||
} | ||
} | ||
failure { | ||
script{ | ||
if ( env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'devel' ) { | ||
slackSend( message: ":rain_cloud: Deployment of eosc-recommender-metrics docs failed! Job: $JOB_NAME") | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.