updated resources
parent
45f0494bc7
commit
451c885ae3
10
pom.xml
10
pom.xml
|
@ -34,6 +34,16 @@
|
|||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<configuration>
|
||||
<addDefaultExcludes>false</addDefaultExcludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<defaultValue>${artifactId}</defaultValue>
|
||||
</requiredProperty>
|
||||
<requiredProperty key="description">
|
||||
<defaultValue>${description}</defaultValue>
|
||||
<defaultValue>${artifactId} Web Service.</defaultValue>
|
||||
</requiredProperty>
|
||||
<requiredProperty key="repo_name">
|
||||
<defaultValue>${groupId}/${artifactId}</defaultValue>
|
||||
|
@ -28,7 +28,7 @@
|
|||
<includes>
|
||||
<include>*.yml</include>
|
||||
<include>*.yaml</include>
|
||||
<include>.gitignore</include>
|
||||
<include>gitignore</include>
|
||||
<include>*.md</include>
|
||||
<include>*.xml</include>
|
||||
<include>Jenkinsfile</include>
|
||||
|
|
|
@ -94,16 +94,21 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Build and Deploy Documentation') {
|
||||
when { branch 'master' }
|
||||
when {
|
||||
anyOf {
|
||||
{ branch 'master' }
|
||||
{ branch 'dev' }
|
||||
}
|
||||
}
|
||||
agent {
|
||||
label 'docker'
|
||||
}
|
||||
steps {
|
||||
sh 'docker run --rm -v ${PWD}:/docs -u $(id -u ${USER}):$(id -g ${USER}) squidfunk/mkdocs-material build'
|
||||
withCredentials([sshUserPrivateKey(credentialsId: "static_deploy", keyFileVariable: 'keyfile')]) {
|
||||
sh "ssh -i ${keyfile} provision@www01.nclazz.de mkdir -p /srv/docs/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}"
|
||||
sh "scp -r -i ${keyfile} site/* provision@www01.nclazz.de:/srv/docs/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}"
|
||||
|
||||
sh 'ssh -i ${keyfile} provision@www01.nclazz.de mkdir -p /srv/docs/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}'
|
||||
sh 'scp -r -i ${keyfile} site/* provision@www01.nclazz.de:/srv/docs/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}'
|
||||
sh 'ssh -i ${keyfile} provision@www01.nclazz.de cp -r /srv/docs/${GROUP_ID}/${ARTIFACT_ID}/${NAMED_TAG}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
${name}
|
||||
===========================
|
||||
|
||||
*Generated by `web-service-archetype` Maven archetype.*
|
||||
> **!!! Important !!!**
|
||||
>
|
||||
> Please remember to rename the `gitignore` file to `.gitignore`!
|
||||
>
|
||||
> Otherwise everything in the project will be commited.
|
||||
|
||||
${description}
|
||||
|
||||
${description}
|
||||
|
||||
For full documentation visit [docs.nclazz.de/${groupId}/${artifactId}/latest](https://docs.nclazz.de/${groupId}/${artifactId}/latest).
|
Loading…
Reference in New Issue