Skip to content

Instantly share code, notes, and snippets.

@rasheedamir
Last active April 18, 2018 12:05
Show Gist options
  • Select an option

  • Save rasheedamir/7e7e3ed098e5b48552b93c4a8fc43edb to your computer and use it in GitHub Desktop.

Select an option

Save rasheedamir/7e7e3ed098e5b48552b93c4a8fc43edb to your computer and use it in GitHub Desktop.

Revisions

  1. rasheedamir revised this gist Apr 18, 2018. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions Jenkinsfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```
    #!/usr/bin/groovy
    @Library('github.com/fabric8io/fabric8-pipeline-library@cf54366') _

    @@ -19,4 +18,3 @@ podTemplate() {
    }
    }
    }
    ```
  2. rasheedamir renamed this gist Apr 18, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. rasheedamir renamed this gist Apr 18, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. rasheedamir revised this gist Apr 18, 2018. No changes.
  5. rasheedamir created this gist Apr 18, 2018.
    22 changes: 22 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    ```
    #!/usr/bin/groovy
    @Library('github.com/fabric8io/fabric8-pipeline-library@cf54366') _

    def kubeConfig = params.KUBE_CONFIG

    podTemplate() {

    mavenNode(dockerImage: 'docker:1.11.2') {
    container(name: 'maven') {
    stage("checkout") {
    sh "echo version := 1.0.${env.BUILD_ID} >> build.txt"
    sh "ls -l"
    withAWS(role:'nodes.tools178.yard.com') {
    echo 'Hello World'
    s3Upload(file:'build.txt', bucket:'847616476486-microfrontends2', path:'file.txt')
    }
    }
    }
    }
    }
    ```