message: [windows] Draft pipeline.
diff: @@ -14,6 +14,7 @@ def testing() {
  stage('Testing') {
  parallel([
  'libindy-ubuntu-test' : { libindyUbuntuTesting() },
  + 'libindy-windows-test': { libindyWindowsTesting() },
  'libindy-redhat-test' : { libindyRedHatTesting() },
  'java-ubuntu-test' : { javaWrapperUbuntuTesting() },
  'python-ubuntu-test' : { pythonWrapperUbuntuTesting() }
  @@ -127,6 +128,47 @@ def libindyTest(file, env_name, run_interoperability_tests, network_name) {
  }
  }
  +def libindyWindowsTesting() {
  + node('win2016') {
  + stage('Windows Test') {
  + echo "Windows Test: Checkout scm"
  + checkout scm
  +
  + try {
  + echo "Windows Test: Run Indy pool"
  + bat "docker -H $INDY_SDK_SERVER_IP build --build-arg pool_ip=$INDY_SDK_SERVER_IP -f indy-sdk/ci/indy-pool.dockerfile -t indy_pool indy-sdk/ci"
  + bat "docker -H $INDY_SDK_SERVER_IP create --network host --name indy_pool -p 9701-9708:9701-9708 indy_pool"
  +
  + dir('libindy') {
  + bat 'wget -O prebuilt.zip "https://www.dsr-company.com/fm.php?Download=1&FileToDL=indy_prebuilt_deps.zip"'
  + bat 'unzip prebuilt.zip -d prebuilt'
  +
  + bat "cargo update"
  +
  + echo "$WORKSPACE"
  +
  + withEnv([
  + "INDY_PREBUILT_DEPS_DIR=$WORKSPACE\\libindy\\prebuilt",
  + "MILAGRO_DIR=$WORKSPACE\\libindy\\prebuilt",
  + "ZMQPW_DIR=$WORKSPACE\\libindy\\prebuilt",
  + "SODIUM_LIB_DIR=$WORKSPACE\\libindy\\prebuilt",
  + "OPENSSL_DIR=$WORKSPACE\\libindy\\prebuilt",
  + "PATH=$WORKSPACE\\libindy\\prebuilt\\lib;$PATH"
  + ]) {
  + bat "cargo build"
  + }
  + }
  + } finally {
  + try {
  + bat "docker -H $INDY_SDK_SERVER_IP stop indy_pool"
  + } finally {
  + bat "docker -H $INDY_SDK_SERVER_IP rm indy_pool"
  + }
  + }
  + }
  + }
  +}
  +
  def libindyUbuntuTesting() {
  node('ubuntu') {
  stage('Ubuntu Test') {
  