Remove Javadoc profile and related GitLab CI configuration
This commit is contained in:
+1
-30
@@ -59,39 +59,10 @@ pages:
|
||||
script:
|
||||
- echo "Deploying GitLab Pages from docs/"
|
||||
- mkdir public
|
||||
- cp -r target/apidocs; docs/
|
||||
- cp -r docs/* public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- develop
|
||||
|
||||
javadoc:
|
||||
stage: deploy_pages
|
||||
before_script:
|
||||
- apk update && apk add git
|
||||
- git config --global user.name "${GITLAB_USERNAME}"
|
||||
- git config --global user.email "${GITLAB_USEREMAIL}"
|
||||
- git fetch origin ${CI_COMMIT_REF_NAME}
|
||||
- git checkout ${CI_COMMIT_REF_NAME}
|
||||
script:
|
||||
- rm -rf docs/apidocs
|
||||
- mvn javadoc:javadoc -DskipTests -Pjavadoc
|
||||
- |
|
||||
if ! git diff --quiet -- docs/apidocs; then
|
||||
git add docs/apidocs
|
||||
git commit -m "Update Javadocs"
|
||||
git push https://${GITLAB_USERNAME}:${CI_PUSH_TOKEN}@gitlab.com/th-schwarz/CloudflareDNS-java.git ${CI_COMMIT_REF_NAME}
|
||||
echo "Commits found and pushed"
|
||||
[ ! -d public ] && mkdir public || echo "Directory 'public' already exists"
|
||||
cp -r docs/* public/
|
||||
echo "Copied javadoc files to public folder"
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
when: manual
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- develop
|
||||
@@ -132,7 +132,6 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@@ -223,34 +222,4 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>javadoc</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<configuration>
|
||||
<failOnError>false</failOnError>
|
||||
<locale>en</locale>
|
||||
<source>${java.version}</source>
|
||||
<reportOutputDirectory>${project.basedir}/docs</reportOutputDirectory>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>build-javadoc-html</id>
|
||||
<goals>
|
||||
<goal>javadoc</goal>
|
||||
</goals>
|
||||
<phase>package</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
@@ -33,7 +33,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
* System.out.println("Record Type: " + record.getType() + ", Value: " + record.getContent())
|
||||
* );
|
||||
* // Create a record for the subdomain "api"
|
||||
* RecordEntity created = client.recordCreateSld(zone, "api", 60, RecordType.A, "192.168.3);
|
||||
* RecordEntity created = client.recordCreateSld(zone, "api", 60, RecordType.A, "192.168.10);
|
||||
* System.out.println("Created Record ID: " + created.getId());
|
||||
* </code></pre>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user