GithubHelp home page GithubHelp logo

mehmetalpsumer / jobs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zowe/jobs

0.0 1.0 0.0 559 KB

Repo for the jobs api controller and code

License: Eclipse Public License 2.0

Java 95.60% Shell 4.07% Batchfile 0.34%

jobs's Introduction

Explorer Jobs API

Quality Gate Status

Build

./gradlew build

SonarQube Static Code Scan

./gradlew --info sonarqube -Psonar.host.url=${SONAR_HOST_URL}

*Note: please replace the ${SONAR_HOST_URL} variable in above with your SonarQube server URL.

Test

Unit Test

./gradlew test

Integration Test

  • Generate test certificate

    keytool -genkeypair -keystore localhost.keystore.p12 -storetype PKCS12 \
        -storepass password -alias localhost -keyalg RSA -keysize 2048 -validity 99999 \
        -dname \"CN=Zowe Jobs Explorer API Default Certificate, OU=Zowe API Squad, O=Zowe, L=Hursley, ST=Hampshire, C=UK\" \
        -ext san=dns:localhost,ip:127.0.0.1
    
  • Start test server

    java -Xms16m -Xmx512m -Dibm.serversocket.recover=true -Dfile.encoding=UTF-8 \
      -Djava.io.tmpdir=/tmp \
      -Dserver.port=8443 \
      -Dserver.ssl.keyAlias=localhost \
      -Dserver.ssl.keyStore=localhost.keystore.p12 \
      -Dserver.ssl.keyStorePassword=password \
      -Dserver.ssl.keyStoreType=PKCS12 \
      -Dzosmf.httpsPort=${ZOSMF_PORT} \
      -Dzosmf.ipAddress=${ZOSMF_HOST} \
      -jar $(ls -1 jobs-api-server/build/libs/jobs-api-server-*.jar) &
    

    *Note: please replace the ${ZOSMF_PORT} and ${ZOSMF_HOST} variable in above with your z/OSMF server information.

  • Run integration test

    ./gradlew runIntegrationTests \
      -Pserver.host=localhost \
      -Pserver.port=8443 \
      -Pserver.username=${USERNAME} \
      -Pserver.password=${PASSWORD}
    

    *Note: please replace the ${USERNAME} and ${PASSWORD} variable in above with your z/OSMF server information.

Package and Deploy

# packaging for Zowe
./gradlew packageJobsApiServer
# deploy artifact
./gradlew publishArtifacts --info -Pdeploy.username=${USERNAME} -Pdeploy.password=${PASSWORD}

*Note: please replace the ${USERNAME} and ${PASSWORD} variable in above with your artifactory account information.

jobs's People

Contributors

cforrest97 avatar colin-stone avatar jackjia-ibm avatar joe-winchester avatar jordancain avatar markackert avatar raymondyanli avatar stevenhorsman avatar vitekvlcek-broadcom avatar vvvlc avatar zowe-robot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.