-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
679 additions
and
249 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 |
---|---|---|
|
@@ -7,51 +7,72 @@ def notifyBranch = [recipients: [brokenTestsSuspects(), requestor()]] | |
pipeline { | ||
agent { | ||
node { | ||
label 'alpine:mkdocs' | ||
customWorkspace workspace().getUniqueWorkspacePath() | ||
label 'alpine-mkdocs' | ||
} | ||
} | ||
environment { | ||
DEPLOY_URL="https://strongbox.github.io" | ||
DEPLOY_URL = "https://strongbox.github.io" | ||
} | ||
options { | ||
timeout(time: 30, unit: 'MINUTES') | ||
disableConcurrentBuilds() | ||
} | ||
stages { | ||
stage('Node') | ||
{ | ||
stage('Node') { | ||
steps { | ||
nodeInfo("python pip mkdocs") | ||
container("mkdocs") { | ||
nodeInfo("python pip mkdocs") | ||
} | ||
} | ||
} | ||
stage('Building') | ||
{ | ||
stage('Building') { | ||
steps { | ||
withCredentials([string(credentialsId: '3ea1e18a-b1d1-44e0-a1ff-7b62870913f8', variable: 'GOOGLE_ANALYTICS_KEY')]) { | ||
sh "mkdocs build" | ||
container("mkdocs") { | ||
withCredentials([string(credentialsId: '3ea1e18a-b1d1-44e0-a1ff-7b62870913f8', variable: 'GOOGLE_ANALYTICS_KEY')]) { | ||
sh "mkdocs build" | ||
} | ||
} | ||
} | ||
} | ||
stage('Deploying') { | ||
when { | ||
expression { BRANCH_NAME == 'master' && (currentBuild.result == null || currentBuild.result == 'SUCCESS') } | ||
expression { | ||
BRANCH_NAME == 'master' && (currentBuild.result == null || currentBuild.result == 'SUCCESS') | ||
} | ||
} | ||
steps { | ||
configFileProvider([configFile(fileId: 'e0235d92-c2fc-4f81-ae4b-28943ed7350d', targetLocation: '/tmp/gh-pages.sh')]) { | ||
container("mkdocs") { | ||
withCredentials([sshUserPrivateKey(credentialsId: '011f2a7d-2c94-48f5-92b9-c07fd817b4be', keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER')]) { | ||
withEnv(["GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no -o User=${SSH_USER} -i ${SSH_KEY}"]) { | ||
sh "/bin/bash /tmp/gh-pages.sh" | ||
sh 'git checkout --orphan gh-pages' | ||
sh 'find . -maxdepth 1 ! -name "site" ! -name ".git*" ! -name "." -exec git rm -rf {} \\;' | ||
sh 'git add --force site' | ||
sh 'git commit -m "Updating documentation site."' | ||
sh 'git remote add strongbox.github.io [email protected]:strongbox/strongbox.github.io.git' | ||
sh 'git push strongbox.github.io `git subtree split --prefix site gh-pages`:master --force' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
cleanup { | ||
failure { | ||
script { | ||
workspace().clean() | ||
if (params.NOTIFY_EMAIL) | ||
{ | ||
notifyFailed((BRANCH_NAME == "master") ? notifyMaster : notifyBranch) | ||
} | ||
} | ||
} | ||
fixed { | ||
script { | ||
if (params.NOTIFY_EMAIL) | ||
{ | ||
notifyFixed((BRANCH_NAME == "master") ? notifyMaster : notifyBranch) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings> | ||
|
||
<localRepository>.m2/repository-strongbox-local</localRepository> | ||
|
||
<mirrors> | ||
<mirror> | ||
<id>strongbox</id> | ||
<name>strongbox</name> | ||
<url>http://localhost:48080/storages/public/maven-group/</url> | ||
<mirrorOf>*</mirrorOf> | ||
</mirror> | ||
</mirrors> | ||
|
||
<profiles> | ||
<profile> | ||
<id>carlspring-repositories</id> | ||
|
||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
|
||
<repositories> | ||
<repository> | ||
<id>strongbox</id> | ||
<name>strongbox</name> | ||
<url>http://localhost:48080/storages/public/maven-group/</url> | ||
<layout>default</layout> | ||
</repository> | ||
</repositories> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>strongbox</id> | ||
<name>strongbox</name> | ||
<url>http://localhost:48080/storages/public/maven-group/</url> | ||
<layout>default</layout> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
</profile> | ||
</profiles> | ||
|
||
<servers> | ||
<server> | ||
<id>releases</id> | ||
<username>admin</username> | ||
<password>password</password> | ||
</server> | ||
<server> | ||
<id>snapshots</id> | ||
<username>admin</username> | ||
<password>password</password> | ||
</server> | ||
</servers> | ||
</settings> |
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
2 changes: 1 addition & 1 deletion
2
docs/developer-guide/logging.md → docs/developer-guide/add-logging.md
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Logging | ||
# Add logging to projects or modules | ||
|
||
The logging in the application is set up using: | ||
|
||
|
Oops, something went wrong.