Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spark2.4.6 to maven-publish-scala #5138

Merged
merged 29 commits into from
Jul 26, 2022
Merged

Conversation

pinggao187
Copy link
Contributor

Description

add spark2.4.6 to maven-publish-scala, currently only spark3.1.2

@@ -84,6 +85,21 @@ jobs:
sed -i 's/<artifactId>bigdl-parent-spark_${spark.version}<\/artifactId>/<artifactId>bigdl-parent-spark_3.1.2<\/artifactId>/' scala/assembly/pom.xml
mvn -Dhttp.proxyHost=${{ secrets.HTTP_PROXY_HOST_2 }} -Dhttp.proxyPort=${{ secrets.HTTP_PROXY_PORT_2 }} -Dhttps.proxyHost=${{ secrets.HTTP_PROXY_HOST_2 }} -Dhttps.proxyPort=${{ secrets.HTTP_PROXY_PORT_3 }} clean deploy -DskipTests -Dspark.version=3.1.2 -DSPARK_PLATFORM=SPARK_3.1 -P spark_3.x --file scala/pom.xml

#spark 2.4.6
sed -i 's/<artifactId>${spark-version.project}<\/artifactId>/<artifactId>${spark-version.project}-${SPARK_PLATFORM}<\/artifactId>/' scala/dllib/pom.xml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should cp some copies for the original pom since they need to be modified twice

@@ -58,8 +63,8 @@ jobs:
}
},{
"id": "ossrh",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_PASSWORD }}",
"username": "${OSSRH_USERNAME}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put this in
env:

like

  • name: Do something
    env:
    FOO_TOKEN: ${{ secrets.FOO_TOKEN }}
    run: |
    echo "FOO_TOKEN = ${FOO_TOKEN}"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put this in env:

like

  • name: Do something
    env:
    FOO_TOKEN: ${{ secrets.FOO_TOKEN }}
    run: |
    echo "FOO_TOKEN = ${FOO_TOKEN}"

test:

- name: Set up OSSRH
      env:
        OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
        OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
      run: |
        echo "OSSRH_USERNAME = ${OSSRH_USERNAME}"
        echo "OSSRH_PASSWORD = ${OSSRH_PASSWORD}"

still can't get it

Run echo "OSSRH_USERNAME = ${OSSRH_USERNAME}"
OSSRH_USERNAME = 
OSSRH_PASSWORD = 

Copy link
Contributor

@glorysdj glorysdj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glorysdj glorysdj merged commit aa7a6b1 into intel:main Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants