diff --git a/pom.xml b/pom.xml index d2ff315..f5da0d5 100644 --- a/pom.xml +++ b/pom.xml @@ -60,4 +60,3 @@ - diff --git a/random.sh b/random.sh deleted file mode 100644 index e3d0ec9..0000000 --- a/random.sh +++ /dev/null @@ -1 +0,0 @@ -echo true8 diff --git a/shippable.jobs.yml b/shippable.jobs.yml deleted file mode 100644 index dc25a62..0000000 --- a/shippable.jobs.yml +++ /dev/null @@ -1,16 +0,0 @@ -jobs: - - name: runSh-Job-java - type: runSh - steps: - - TASK: - - script: sudo apt-get install tree - - script: tree -F IN - - script: sleep 3 - on_success: - - script: echo "successfully completed" - - - name: sample_pipelines_runCI - type: runCI - steps: - - IN: sample_java_runCI - - OUT: nginx-image-java diff --git a/shippable.resources.yml b/shippable.resources.yml deleted file mode 100644 index 8db5f3a..0000000 --- a/shippable.resources.yml +++ /dev/null @@ -1,8 +0,0 @@ -resources: - - name: nginx-image-java - type: image - integration: "docker-subint" - pointer: - sourceName: "library/nginx" - seed: - versionName: latest diff --git a/shippable.yml b/shippable.yml index 7700898..6a4ed24 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,34 +1,79 @@ resources: - name: sample_java_repo_test type: gitRepo - integrationName: github-subint - repoPath: ankul-shippable/sample_java + repoPath: deepikasl/sample_java configuration: + integrationName: github-subint branches: - except: "*test" - only: "master*" + except: test + only: master tags: except: none only: none - buildOnCommit: true - buildOnPullRequest: false - buildOnPullRequestClose: false - buildOnRelease: true - buildOnTagPush: false - buildOnFileCommit: "*test" + buildOn: + commit: true + pullRequest: true + pullRequestClose: true + release: true + tagPush: true + fileCommit: "*test" shallowDepth: 2 gitConfig: - dont_know - dont_know_2 initialVersion: sha: master + - name: sample_java_file_test + type: file + fileUrl: text.js + configuration: + integrationName: docker-int + initialVersion: + fileName: test + fileDtTm: test + - name: sample_java_image_test + type: image + imageName: "library/nginx" + configuration: + integrationName: docker-int + initialVersion: + imageTag: latest + - name: sample_java_webhook_test + type: webhook + configuration: + integrationName: github-subint + initialVersion: + payload: test_payload + - name: sample_java_kube_test + type: cluster + configuration: + integrationName: kubeIntegration + bastionHostIP: 1.2.3.4 + bastionUser: sshUser + bastionIntegrationName: sshKey-int pipelines: - name: test_pipeline_1 + setup: + environmentVariables: + readOnly: + - ENV1: value-pipe-1 + - ENV2: value-pipe-2 + runtime: + type: image + image: + auto: true + language: java + versions: v1.1 + custom: + name: test + tag: test + options: test steps: - name: in_trigger_step - type: runSh - group: test_group + type: bash + configuration: + affinityGroup: test_group setup: environmentVariables: normal: @@ -37,18 +82,28 @@ pipelines: encrypted: - SECURE_ENV1: test_value - SECURE_ENV2: test_value - runtime: onHost - onExecute: - - echo "executing task command 1" - - echo "executing task command 2" + runtime: + type: image + image: + auto: true + language: java + versions: v1.1 + custom: + name: test + tag: test + options: test + execution: + onExecute: + - echo "executing task command 1" + - echo "executing task command 2" - name: main_step - type: runSh - group: test_group - syntaxVersion: "2018-03-12" - priority: 9999 - timeoutMinutes: 40 - cache: true + type: bash + configuration: + affinityGroup: test_group + priority: 9999 + timeoutSeconds: 40 + cache: true setup: environmentVariables: normal: @@ -57,28 +112,90 @@ pipelines: encrypted: - SECURE_ENV1: test_value - SECURE_ENV2: test_value - runtime: onHost - dependsOn: - passive: - # steps: - # - passive_step - integrations: - - github-subint - trigger: - resources: - - sample_java_repo_test - steps: - - in_trigger_step - onStart: - - echo "Prepping build environment" - onExecute: - - echo "executing task command 1" - - echo "executing task command 2" - onSuccess: - - echo "Job well done!" - onFailure: - - echo "uh oh, something went wrong" - onComplete: - - echo "Cleaning up some stuff" - onCancel: - - echo "Someone cancelled the job" + runtime: + type: host + image: + auto: true + language: java + versions: v1.1 + custom: + name: test + tag: test + options: test + requires: + integrations: + - github-subint + triggeredBy: + resources: + - sample_java_repo_test + steps: + - in_trigger_step + execution: + onStart: + - echo "Prepping build environment" + onExecute: + - echo "executing task command 1" + - echo "executing task command 2" + onSuccess: + - echo "Job well done!" + onFailure: + - echo "uh oh, something went wrong" + onComplete: #always + - echo "Cleaning up some stuff" + onCancel: + - echo "Someone cancelled the job" + outputResources: + - sample_java_file_test + - sample_java_webhook_test + - name: other_step + type: bash + configuration: + affinityGroup: test_group + priority: 9999 + timeoutSeconds: 40 + cache: true + setup: + environmentVariables: + normal: + - ENV1: value11 + - ENV2: value21 + encrypted: + - SECURE_ENV1: test_value1 + - SECURE_ENV2: test_value1 + runtime: + type: host + image: + auto: true + language: java + versions: v1.1 + custom: + name: test + tag: test + options: test + requires: + resources: + - sample_java_file_test + integrations: + - github-subint + triggeredBy: + resources: + - sample_java_image_test + steps: + - main_step + execution: + onStart: + - echo "Prepping build environment" + onExecute: + - echo "executing task command 1" + - echo "executing task command 2" + onSuccess: + - echo "Job well done!" + onFailure: + - echo "uh oh, something went wrong" + onComplete: #always + - echo "Cleaning up some stuff" + onCancel: + - echo "Someone cancelled the job" + outputResources: + - sample_java_webhook_test +