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

push docker file #203

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set
identifier: Build_sahithibanda01_gradle_scoverage_1703139166056prtriggerinputset
orgIdentifier: default
projectIdentifier: autogen
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703139166056
properties:
ci:
codebase:
build:
type: PR
spec:
number: <+trigger.prNumber>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set
identifier: Build_sahithibanda01_gradle_scoverage_1703139166056pushtriggerinputset
orgIdentifier: default
projectIdentifier: autogen
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703139166056
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set
identifier: Build_sahithibanda01_gradle_scoverage_1703140173662prtriggerinputset
orgIdentifier: default
projectIdentifier: autogen
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703140173662
properties:
ci:
codebase:
build:
type: PR
spec:
number: <+trigger.prNumber>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set
identifier: Build_sahithibanda01_gradle_scoverage_1703140173662pushtriggerinputset
orgIdentifier: default
projectIdentifier: autogen
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703140173662
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set
identifier: Build_sahithibanda01_gradle_scoverage_1703140439227prtriggerinputset
orgIdentifier: default
projectIdentifier: autogen
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703140439227
properties:
ci:
codebase:
build:
type: PR
spec:
number: <+trigger.prNumber>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set
identifier: Build_sahithibanda01_gradle_scoverage_1703140439227pushtriggerinputset
orgIdentifier: default
projectIdentifier: autogen
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703140439227
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
53 changes: 53 additions & 0 deletions .harness/pipelines/gradle-scoverage-1703139162983.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703139166056
name: Build gradle-scoverage
orgIdentifier: default
projectIdentifier: autogen
properties:
ci:
codebase:
build: <+input>
connectorRef: account.SahithiConnector
repoName: sahithibanda01/gradle-scoverage
stages:
- stage:
identifier: build
name: build
spec:
cloneCodebase: true
execution:
steps:
- step:
identifier: dockerbuild
name: docker_build
spec:
image: plugins/docker
settings:
dry_run: "true"
password: <+input>
repo: hello/world
tags: latest
username: <+input>
timeout: ""
type: Plugin
- step:
identifier: scalabuild
name: scala_build
spec:
command: "gradle build "
timeout: ""
type: Run
- step:
identifier: scalatest
name: scala_test
spec:
command: "./gradlew test\n\t\txml_file=$(find /harness/build/test-results/test -type f -name \"*.xml\" | head -n 1)\n\n\t\tif [ -n \"$xml_file\" ]; then\n\t\t\tcp \"$xml_file\" /harness/reports.xml\n\t\t\techo \"XML file copied to /harness/reports.xml\"\n\t\telse\n\t\t\techo \"No XML file found in /path\"\n\t\tfi"
timeout: ""
type: Run
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI
53 changes: 53 additions & 0 deletions .harness/pipelines/gradle-scoverage-1703140170385.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703140173662
name: Build gradle-scoverage
orgIdentifier: default
projectIdentifier: autogen
properties:
ci:
codebase:
build: <+input>
connectorRef: account.SahithiConnector
repoName: sahithibanda01/gradle-scoverage
stages:
- stage:
identifier: build
name: build
spec:
cloneCodebase: true
execution:
steps:
- step:
identifier: dockerbuild
name: docker_build
spec:
image: plugins/docker
settings:
dry_run: "true"
password: <+input>
repo: hello/world
tags: latest
username: <+input>
timeout: ""
type: Plugin
- step:
identifier: scalabuild
name: scala_build
spec:
command: "gradle build "
timeout: ""
type: Run
- step:
identifier: scalatest
name: scala_test
spec:
command: "./gradlew test\n\t\txml_file=$(find /harness/build/test-results/test -type f -name \"*.xml\" | head -n 1)\n\n\t\tif [ -n \"$xml_file\" ]; then\n\t\t\tcp \"$xml_file\" /harness/reports.xml\n\t\t\techo \"XML file copied to /harness/reports.xml\"\n\t\telse\n\t\t\techo \"No XML file found in /path\"\n\t\tfi"
timeout: ""
type: Run
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI
53 changes: 53 additions & 0 deletions .harness/pipelines/gradle-scoverage-1703140436142.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
pipeline:
identifier: Build_sahithibanda01_gradle_scoverage_1703140439227
name: Build gradle-scoverage
orgIdentifier: default
projectIdentifier: autogen
properties:
ci:
codebase:
build: <+input>
connectorRef: account.SahithiConnector
repoName: sahithibanda01/gradle-scoverage
stages:
- stage:
identifier: build
name: build
spec:
cloneCodebase: true
execution:
steps:
- step:
identifier: dockerbuild
name: docker_build
spec:
image: plugins/docker
settings:
dry_run: "true"
password: <+input>
repo: hello/world
tags: latest
username: <+input>
timeout: ""
type: Plugin
- step:
identifier: scalabuild
name: scala_build
spec:
command: "gradle build "
timeout: ""
type: Run
- step:
identifier: scalatest
name: scala_test
spec:
command: "./gradlew test\n\t\txml_file=$(find /harness/build/test-results/test -type f -name \"*.xml\" | head -n 1)\n\n\t\tif [ -n \"$xml_file\" ]; then\n\t\t\tcp \"$xml_file\" /harness/reports.xml\n\t\t\techo \"XML file copied to /harness/reports.xml\"\n\t\telse\n\t\t\techo \"No XML file found in /path\"\n\t\tfi"
timeout: ""
type: Run
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Use an official OpenJDK runtime as a parent image
FROM openjdk:11-jre-slim

# Set the working directory to /app
WORKDIR /app

# Copy the built JAR file into the container at /app
# COPY build/libs/gradle-scoverage.jar /app/gradle-scoverage.jar

ARG GREETING="Hello"
ARG BANDA="sahithi"
RUN echo "$GREETING, world!, $BANDA"

# Specify the default command to run on boot
CMD ["java", "-jar", "gradle-scoverage.jar"]
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ gradlePlugin {
id = 'org.scoverage'
implementationClass = 'org.scoverage.ScoveragePlugin'
displayName = 'Gradle Scoverage plugin'
tags.set(['coverage', 'scala', 'scoverage'])
// tags.set(['coverage', 'scala', 'scoverage'])
}
}
}
Expand Down