Replace exit 404 to exit 1 89/53089/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 9 Mar 2017 15:18:05 +0000 (10:18 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 9 Mar 2017 15:18:51 +0000 (10:18 -0500)
Per Vratko's suggestion in Id4b67cb38a6ba297e9e2cd3f9091a1666b9c955c

Change-Id: Ibe607e43578e831dd1c88883f97c264b51657253
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jenkins-scripts/jenkins-init-script.sh
jjb/autorelease/include-raw-autorelease-maven-deploy.sh
jjb/include-raw-deploy-archives.sh
jjb/include-raw-stage-release.sh
jjb/netvirt/include-raw-openstack-ci.sh
jjb/neutron/include-raw-openstack-ci.sh
jjb/opendaylight-infra-stack.sh

index fc55c89c747ad77f3d8bc4763a3e5e9116fcfd63..fe327e3f544fbcfe28e9bcefcde7364521a3dd50 100755 (executable)
@@ -9,7 +9,7 @@
 # http://www.eclipse.org/legal/epl-v10.html
 ##############################################################################
 
-cd /builder/jenkins-scripts || exit 404
+cd /builder/jenkins-scripts || exit 1
 chmod +x -- *.sh
 ./system_type.sh
 
index 40f3b8230460cb8ee6b0463c71fc65c08fd65fe1..3efacf878afb88f311de94852a22d46651eb8944 100644 (file)
@@ -10,7 +10,7 @@
 ##############################################################################
 
 # Assuming that mvn deploy created the hide/from/pom/files/stage directory.
-cd hide/from/pom/files || exit 404
+cd hide/from/pom/files || exit 1
 mkdir -p m2repo/org/opendaylight/
 
 # ODLNEXUSPROXY is used to define the location of the Nexus server used by the CI system.
index 8fedd1ccd72b1b62ddefcd9d43c43b0ff5568012..b0351d1e6b9d230460a5cc94906e3127ada6fa7d 100644 (file)
@@ -25,7 +25,7 @@ ARCHIVES_DIR="$JENKINS_HOSTNAME/$JOB_NAME/$BUILD_NUMBER"
 echo "Build logs: <a href=\"$LOGS_SERVER/$SILO/$ARCHIVES_DIR\">$LOGS_SERVER/$SILO/$ARCHIVES_DIR</a>"
 
 mkdir .archives
-cd .archives/ || exit 404
+cd .archives/ || exit 1
 
 cat > deploy-archives.xml <<EOF
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
index 552bf4a06f9504469d3bff663c0c20a36f996421..2a224c670025e2ea5fe62daac47f0a52c7dbf90e 100644 (file)
@@ -10,7 +10,7 @@
 ##############################################################################
 
 # Assuming that mvn deploy created the hide/from/pom/files/stage directory.
-cd hide/from/pom/files || exit 404
+cd hide/from/pom/files || exit 1
 mkdir -p m2repo/org/opendaylight/
 
 rsync -avz --exclude 'maven-metadata*' \
index 88475dfe904b8498d927a82569a72ac09bf07610..46067683360527a3f7a9fdef3e266b71cdaa3d43 100644 (file)
@@ -17,18 +17,18 @@ sudo chown -R jenkins:jenkins /opt/stack/new
 sudo bash -c 'echo "stack ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers'
 
 # We need to install some scripts from openstack/os-testr project
-cd ~ || exit 404
+cd ~ || exit 1
 echo "Setting up infra scripts"
 sudo mkdir -p /usr/local/jenkins/slave_scripts
 git clone https://github.com/openstack/os-testr.git
-cd os-testr/os_testr || exit 404
+cd os-testr/os_testr || exit 1
 sudo cp subunit2html.py /usr/local/jenkins/slave_scripts
 
 # Save existing WORKSPACE
 SAVED_WORKSPACE="$WORKSPACE"
 export WORKSPACE=~/workspace
 mkdir -p "$WORKSPACE"
-cd "$WORKSPACE" || exit 404
+cd "$WORKSPACE" || exit 1
 
 # This is the job which checks out devstack-gate
 if [[ ! -e devstack-gate ]]; then
@@ -36,7 +36,7 @@ if [[ ! -e devstack-gate ]]; then
     git clone https://git.openstack.org/openstack-infra/devstack-gate
 else
     echo "Fixing devstack-gate git remotes"
-    cd devstack-gate || exit 404
+    cd devstack-gate || exit 1
     git remote set-url origin https://git.openstack.org/openstack-infra/devstack-gate
     git remote update
     git reset --hard
index 7864b962939db8f71b953c414bfb72932fad1e77..24d43322e7b47ec523be182017ef064b1ed5ae54 100644 (file)
@@ -17,18 +17,18 @@ sudo chown -R jenkins:jenkins /opt/stack/new
 sudo bash -c 'echo "stack ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers'
 
 # We need to install some scripts from openstack-infra/project-config
-cd ~ || exit 404
+cd ~ || exit 1
 echo "Setting up infra scripts"
 sudo mkdir -p /usr/local/jenkins/slave_scripts
 git clone https://git.openstack.org/openstack-infra/project-config
-cd project-config || exit 404
+cd project-config || exit 1
 sudo cp jenkins/scripts/subunit2html.py /usr/local/jenkins/slave_scripts
 
 # Save existing WORKSPACE
 SAVED_WORKSPACE=$WORKSPACE
 export WORKSPACE=~/workspace
 mkdir -p $WORKSPACE
-cd $WORKSPACE || exit 404
+cd $WORKSPACE || exit 1
 
 # This is the job which checks out devstack-gate
 if [[ ! -e devstack-gate ]]; then
@@ -36,7 +36,7 @@ if [[ ! -e devstack-gate ]]; then
     git clone https://git.openstack.org/openstack-infra/devstack-gate
 else
     echo "Fixing devstack-gate git remotes"
-    cd devstack-gate || exit 404
+    cd devstack-gate || exit 1
     git remote set-url origin https://git.openstack.org/openstack-infra/devstack-gate
     git remote update
     git reset --hard
index e54d637f955b6f40667bd27cd76c4b0bb0f0bd30..3a105144081b831bc6587ef23aa1de7e75a804e9 100644 (file)
@@ -6,7 +6,7 @@ pip install --upgrade pip
 pip install --upgrade python-openstackclient python-heatclient
 pip freeze
 
-cd /builder/openstack-hot || exit 404
+cd /builder/openstack-hot || exit 1
 
 JOB_SUM=$(echo "$JOB_NAME" | sum | awk '{{ print $1 }}')
 VM_NAME="$JOB_SUM-$BUILD_NUMBER"