Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [CI-14710]: Javadoc Conversion Logic #236

Merged
merged 6 commits into from
Nov 23, 2024
Merged

feat: [CI-14710]: Javadoc Conversion Logic #236

merged 6 commits into from
Nov 23, 2024

Conversation

Ompragash
Copy link
Member

Added "Javadoc" support to go-convert specific to jenkins migration.

op-javadoc.json

go run main.go jenkinsjson -downgrade ~/Downloads/op-javadoc.json 
Example Harness v0 YAML
pipeline:
  identifier: default
  name: default
  orgIdentifier: default
  projectIdentifier: default
  properties:
    ci:
      codebase:
        build: <+input>
  stages:
  - stage:
      identifier: build
      name: build
      spec:
        cloneCodebase: true
        execution:
          steps:
          - stepGroup:
              identifier: Stage__nullb5a696
              name: Checkout
              timeout: ""
          - stepGroup:
              identifier: Stage__nullcbb8ae
              name: Build
              steps:
              - step:
                  identifier: sh574fb7
                  name: sh
                  spec:
                    command: cd complete && gradle clean build --info --stacktrace
                    image: alpine
                    shell: Sh
                  timeout: ""
                  type: Run
              timeout: ""
          - stepGroup:
              identifier: Stage__nullc2abc0
              name: Generate Javadoc
              steps:
              - step:
                  identifier: sh34c17c
                  name: sh
                  spec:
                    command: cd complete && gradle javadoc --info --stacktrace
                    image: alpine
                    shell: Sh
                  timeout: ""
                  type: Run
              timeout: ""
          - stepGroup:
              identifier: Stage__nulld86474
              name: Publish Javadoc
              steps:
              - step:
                  identifier: f14ddfd46ceb566c
                  name: Upload and Publish Javadoc
                  spec:
                    image: harnesscommunity/drone-s3-upload-publish
                    settings:
                      aws_access_key_id: <+input>
                      aws_bucket: <+input>
                      aws_secret_access_key: <+input>
                      source: complete/build/docs/javadoc
                      target: <+pipeline.name>/<+pipeline.sequenceId>
                  timeout: ""
                  type: Plugin
              timeout: ""
        platform:
          arch: Amd64
          os: Linux
        runtime:
          spec: {}
          type: Cloud
      type: CI

convert/jenkinsjson/convertTestFiles/javadoc/javadoc.yml Outdated Show resolved Hide resolved
convert/jenkinsjson/json/javadoc.go Outdated Show resolved Hide resolved
convert/jenkinsjson/json/javadoc_test.go Outdated Show resolved Hide resolved
@hemanthmantri hemanthmantri merged commit 269d491 into master Nov 23, 2024
@hemanthmantri hemanthmantri deleted the CI-14710 branch November 23, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants