lppedd commented on PR #18:
URL: 
https://github.com/apache/maven-scm-publish-plugin/pull/18#issuecomment-1465186433

   Minimal usage example from a Jenkins declarative pipeline, where 
`your-app-jenkins` are _GitHub App_ credentials.
   
   ```groovy
   stage('Publish site') {
     environment {
       CREDS = credentials('your-app-jenkins')
     }
   
     steps {
       bat 'mvnw clean site site:stage scm-publish:publish-scm' +
               ' -DauthUser=%CREDS_USR%' +
               ' -DauthToken=%CREDS_PSW%'
     }
   }
   ```
   And
   
   ```xml
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-scm-publish-plugin</artifactId>
     <version>${scmPublishVersion}</version>
     <dependencies>
       <dependency>
         <groupId>org.apache.maven.scm</groupId>
         <artifactId>maven-scm-provider-jgit</artifactId>
         <version>${scmProviderJGitVersion}</version>
       </dependency>
     </dependencies>
     <configuration>
       <username>${authUser}</username>
       <password>${authToken}</password>
     </configuration>
   </plugin>
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to